[Numpy-svn] [numpy/numpy] 3a3150: 2to3: Skip isinstance fixer.
GitHub
noreply at github.com
Sun Apr 14 12:59:04 EDT 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 3a315030822ea08a8f563fc037a708716ce5be77
https://github.com/numpy/numpy/commit/3a315030822ea08a8f563fc037a708716ce5be77
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2013-04-14 (Sun, 14 Apr 2013)
Changed paths:
M tools/py3tool.py
Log Message:
-----------
2to3: Skip isinstance fixer.
The isinstance fixer removes duplicate types in the second argument of
isinstance(). For example, isinstance(x, (int, int)) is converted to
isinstance(x, (int)). This would certainly apply if we let the long
fixer replace long by int, but as is it does nothing.
Duplicate entries are supposedly deprecated in Python 3, I'm not sure
why or how, but it does not seem to be a problem at this point. If it
ever becomes so, we can deal with it then.
Closes #3085
Commit: 6c47259eec0ec20c1150c2b29994de59a3158964
https://github.com/numpy/numpy/commit/6c47259eec0ec20c1150c2b29994de59a3158964
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2013-04-14 (Sun, 14 Apr 2013)
Changed paths:
M tools/py3tool.py
Log Message:
-----------
Merge pull request #3245 from charris/2to3-apply-isinstance-fixer
2to3: Skip isinstance fixer.
Compare: https://github.com/numpy/numpy/compare/3f2c789ffd0d...6c47259eec0e
More information about the Numpy-svn
mailing list