Skip to content

Commit

Permalink
2to3: Skip isinstance fixer.
Browse files Browse the repository at this point in the history
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 numpy#3085
  • Loading branch information
charris committed Apr 14, 2013
1 parent 3f2c789 commit 3a31503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/py3tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'imports2',
'input',
'intern',
# 'isinstance',
'isinstance',
'itertools',
'itertools_imports',
'long',
Expand Down

0 comments on commit 3a31503

Please sign in to comment.