PythonCharmers/python-future

futurize adds standard_library.install_aliases() above shebang

Open

#342 opened on Jun 15, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (327 forks)batch import
0.19bugfuturize scripthelp wanted

Repository metrics

Stars
 (1,172 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide