diff options
-rw-r--r-- | pies/__init__.py | 2 | ||||
-rw-r--r-- | pies/ast.py | 8 | ||||
-rw-r--r-- | pies2overrides/setup.py | 4 | ||||
-rw-r--r-- | setup.py | 4 |
4 files changed, 10 insertions, 8 deletions
diff --git a/pies/__init__.py b/pies/__init__.py index 9bfaae1..39d0dd1 100644 --- a/pies/__init__.py +++ b/pies/__init__.py @@ -29,4 +29,4 @@ OTHER DEALINGS IN THE SOFTWARE. """ -__version__ = "2.5.2" +__version__ = "2.5.3" diff --git a/pies/ast.py b/pies/ast.py index 015e24e..ef576eb 100644 --- a/pies/ast.py +++ b/pies/ast.py @@ -1,12 +1,16 @@ from __future__ import absolute_import +import sys from ast import * from .version_info import PY2 -if PY2: +if PY2 or sys.version_info[1] <= 2: Try = TryExcept +else: + TryFinally = () +if PY2: def argument_names(node): return [isinstance(arg, Name) and arg.id or None for arg in node.args.args] @@ -16,8 +20,6 @@ if PY2: def kw_only_default_count(node): return 0 else: - TryFinally = () - def argument_names(node): return [arg.arg for arg in node.args.args] diff --git a/pies2overrides/setup.py b/pies2overrides/setup.py index 04ad026..5bb9c9d 100644 --- a/pies2overrides/setup.py +++ b/pies2overrides/setup.py @@ -14,12 +14,12 @@ if sys.version_info[0] == 2 and sys.version_info[1] < 7: install_requires += ['ordereddict', 'argparse'] setup(name='pies2overrides', - version='2.5.2', + version='2.5.3', description='Defines override classes that should be included with pies only if running on Python2.', author='Timothy Crosley', author_email='timothy.crosley@gmail.com', url='https://github.com/timothycrosley/pies', - download_url='https://github.com/timothycrosley/pies/blob/master/pies2overrides/dist/pies2overrides-2.5.2.tar.gz?raw=true', + download_url='https://github.com/timothycrosley/pies/blob/master/pies2overrides/dist/pies2overrides-2.5.3.tar.gz?raw=true', license="MIT", install_requires=install_requires, requires=install_requires, @@ -24,13 +24,13 @@ except (IOError, ImportError, OSError, RuntimeError): readme = '' setup(name='pies', - version='2.5.2', + version='2.5.3', description='The simplest way to write one program that runs on both Python 2 and Python 3.', long_description=readme, author='Timothy Crosley', author_email='timothy.crosley@gmail.com', url='https://github.com/timothycrosley/pies', - download_url='https://github.com/timothycrosley/pies/blob/master/dist/pies-2.5.2.tar.gz?raw=true', + download_url='https://github.com/timothycrosley/pies/blob/master/dist/pies-2.5.3.tar.gz?raw=true', license="MIT", install_requires=install_requires, requires=install_requires, |