8000 futurize adds standard_library.install_aliases() above shebang · Issue #342 · PythonCharmers/python-future · GitHub
[go: up one dir, main page]

Skip to content
futurize adds standard_library.install_aliases() above shebang #342
Open
@andersk

Description

@andersk
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored test.py
--- test.py	(original)
+++ test.py	(refactored)
@@ -1,3 +1,5 @@
+from future import standard_library
+standard_library.install_aliases()
 #!/usr/bin/env python
 
-import urllib2
+import urllib.request, urllib.error, urllib.parse
RefactoringTool: Files that need to be modified:
RefactoringTool: test.py

Seems like another instance of #43.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0