PythonCharmers/python-future

futurize adds standard_library.install_aliases() above shebang

Open

#342 ouverte le 15 juin 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (327 forks)batch import
0.19bugfuturize scripthelp wanted

Métriques du dépôt

Stars
 (1 172 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur