From 3f31410ea3d5eadf8bb25d37369824e8064f7913 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Tue, 14 Jan 2014 06:22:16 -0500 Subject: Bump version to 2.5.3 --- pies/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.1 From 79f20ad327fb6d443427813be6bd5430426abaa9 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Tue, 14 Jan 2014 06:23:25 -0500 Subject: Bump version to 2.5.3 --- pies2overrides/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- cgit v1.2.1 From f57d1ee13f673f9a1392a310ec75426e8f283a81 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Tue, 14 Jan 2014 06:24:19 -0500 Subject: Bump version to 2.5.3 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b12fd65..32e0740 100644 --- a/setup.py +++ b/setup.py @@ -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, -- cgit v1.2.1 From 62ad2eb82c037350f25d3e575e59f16740365159 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Tue, 14 Jan 2014 18:48:53 -0500 Subject: Fix small incompatibility with Python 3.2 --- pies/ast.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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] -- cgit v1.2.1