This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ericp
Recipients ericp
Date 2009-07-17.17:54:17
SpamBayes Score 0.00030823585
Marked as misclassified No
Message-id <1247853259.26.0.126472143198.issue6506@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-17 17:54:19ericpsetrecipients: + ericp
2009-07-17 17:54:19ericpsetmessageid: <1247853259.26.0.126472143198.issue6506@psf.upfronthosting.co.za>
2009-07-17 17:54:18ericplinkissue6506 messages
2009-07-17 17:54:17ericpcreate