PythonCharmers/python-future
Auf GitHub ansehenfuturize adds standard_library.install_aliases() above shebang
Open
#342 geöffnet am 15. Juni 2018
0.19bugfuturize scripthelp wanted
Repository-Metriken
- Stars
- (1.172 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.