[issue3259] fix_imports needs to be using the 'as' keyword

Benjamin Peterson report at bugs.python.org
Thu Jul 3 04:37:33 CEST 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

Yeah, but then commands will be replaced with subprocess.

$ cat > m
import commands
commands.getoutput()
$ 2to3 m
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: ws_comma
--- m (original)
+++ m (refactored)
@@ -1,2 +1,2 @@
-import commands
-commands.getoutput()
+import subprocess
+subprocess.getoutput()

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3259>
_______________________________________


More information about the Python-bugs-list mailing list