Message90635
Given this code:
import thread
print thread
$ python
ActivePython 2.6.1.1 (ActiveState Software Inc.) based on
Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit
(Intel)] on
win32
>>> from lib2to3.main import main
>>> print open("flip2.py").read()
import thread
print thread
>>> main('lib2to3.fixes', ['flip2.py'])
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
--- flip2.py (original)
+++ flip2.py (refactored)
@@ -1,2 +1,2 @@
-import thread
-print thread
+import _thread
+print(thread)
RefactoringTool: Files that need to be modified:
RefactoringTool: flip2.py
0
Note how "thread" in the print statement is not converted. |
|
Date |
User |
Action |
Args |
2009-07-17 17:54:19 | ericp | set | recipients:
+ ericp |
2009-07-17 17:54:19 | ericp | set | messageid: <1247853259.26.0.126472143198.issue6506@psf.upfronthosting.co.za> |
2009-07-17 17:54:18 | ericp | link | issue6506 messages |
2009-07-17 17:54:17 | ericp | create | |
|