Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
2to3:
* drop libpasteurize.fixes.fix_division * replace lib2to3.fixes.fix_import with libfuturize.fixes.fix_absolute_import (with PyQt exclude plus AlgorithmsTestBase) * drop lib2to3.fixes.fix_print (replaced with libfuturize.fixes.fix_print_with_import)
- Loading branch information
Showing
7 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
from libfuturize.fixes.fix_absolute_import import FixAbsoluteImport | ||
from libfuturize.fixes.fix_absolute_import import FixAbsoluteImport as FixAbsoluteImportOrig | ||
|
||
class FixAbsoluteImport(FixAbsoluteImportOrig): | ||
|
||
def probably_a_local_import(self, imp_name): | ||
if imp_name.startswith(u"PyQt"): | ||
return False | ||
if imp_name == "AlgorithmsTestBase": | ||
return False | ||
return super(FixAbsoluteImport, self).probably_a_local_import(imp_name) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters