From 3a315030822ea08a8f563fc037a708716ce5be77 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 14 Apr 2013 10:27:25 -0600 Subject: 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 --- tools/py3tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/py3tool.py b/tools/py3tool.py index 48d5ba2f7..a6fd5b3f4 100755 --- a/tools/py3tool.py +++ b/tools/py3tool.py @@ -64,7 +64,7 @@ FIXES_TO_SKIP = [ 'imports2', 'input', 'intern', -# 'isinstance', + 'isinstance', 'itertools', 'itertools_imports', 'long', -- cgit v1.2.1