Permalink
Browse files

Fix tests by not expliciting checking for the 'parents' argument (Com…

…mand.create_parser sends all *args and **kwargs to the ArgumentParser constructor)
  • Loading branch information...
1 parent d68bba7 commit 4c4bb76d25ab7d8ffae8d5d3e0e1f59f4c4f44ec @techniq techniq committed Dec 7, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 flask_script/__init__.py
  2. +1 −1 setup.py
View
4 flask_script/__init__.py
@@ -164,9 +164,9 @@ def create_parser(self, prog, parents=None):
description = getattr(command, 'description', command.__doc__)
# Only pass `parents` argument for commands that support it
- if 'parents' in inspect.getargspec(command.create_parser).args:
+ try:
command_parser = command.create_parser(name, parents=[options_parser])
- else:
+ except TypeError:
warnings.warn("create_parser for {0} command should accept a `parents` argument".format(name), DeprecationWarning)
command_parser = command.create_parser(name)
View
2 setup.py
@@ -29,7 +29,7 @@
setup(
name='Flask-Script',
- version='0.6.5',
+ version='0.6.6',
url='http://github.com/techniq/flask-script',
license='BSD',
author='Dan Jacob',

0 comments on commit 4c4bb76

Please sign in to comment.