Skip to content

Commit f511436

Browse files
committed
futurize: move exec fixer to stage1
1 parent c185b9b commit f511436

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/whatsnew.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ What's New
55

66
.. _whats-new-0.15.x:
77

8+
What's new in version 0.15.1 (in development)
9+
=============================================
10+
11+
- ``futurize``: Moved exec fixer to stage1. The forward-compatible ``exec(a, b)`` idiom is supported in Python 2.6 and 2.7. See https://docs.python.org/2/reference/simple_stmts.html#exec.
12+
13+
814
What's new in version 0.15.0 (2015-07-25)
915
=========================================
1016

src/libfuturize/fixes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
lib2to3_fix_names_stage1 = set([
99
'lib2to3.fixes.fix_apply',
1010
'lib2to3.fixes.fix_except',
11+
'lib2to3.fixes.fix_exec',
1112
'lib2to3.fixes.fix_exitfunc',
1213
'lib2to3.fixes.fix_funcattrs',
1314
'lib2to3.fixes.fix_has_key',
@@ -43,7 +44,6 @@
4344
# 'lib2to3.fixes.fix_buffer', # perhaps not safe. Test this.
4445
# 'lib2to3.fixes.fix_callable', # not needed in Py3.2+
4546
'lib2to3.fixes.fix_dict', # TODO: add support for utils.viewitems() etc. and move to stage2
46-
'lib2to3.fixes.fix_exec',
4747
# 'lib2to3.fixes.fix_execfile', # some problems: see issue #37.
4848
# We use a custom fixer instead (see below)
4949
# 'lib2to3.fixes.fix_future', # we don't want to remove __future__ imports

0 commit comments

Comments
 (0)