Changes since 0.3:
- Support for targetting Python 2.5 or lower has been officially dropped.
(Previously some fixers did output constructs that were only added in
Python 2.6, such as the
except ... as
construct, but this was not documented.) - The
fix_next
fixer uses thenext()
builtin rather thansix.advance_iterator
.
Changes since 0.2:
- New fixer for
raise E, V, T
, changed tosix.reraise(E, V, T)
. - New fixer for metaclasses, using
six.with_metaclass
. - Avoid adding redundant parentheses to
print(x)
. - python-modernize can now be installed and run on Python 3.
- Fixed a bug where
__future__
imports were added multiple times. - Fixed a bug where fixer for
zip()
was recognisingmap()
. - The default is now to leave Unicode literals unchanged.
(In previous versions this required the
--compat-unicode
option, which has now been removed.) A new--six-unicode
option has been added to obtain the previous behaviour of addingsix.u
wrappers around Unicode literals.