Message128885
Running Tools/Scripts/2to3.py on Python 3.2rc3 or 2.7.1 for Windows on a file that contains a formfeed character (0x0C, <FF>) results in a truncated file.
E.g. a file (attached) with the content
print 1
<FF>
print 2
is incorrectly refactored:
@@ -1,4 +1,1 @@
-print 1
-
-
-print 2
+print(1)
Python 2.6.6 and 3.1.3 correctly refactor the file:
-print 1
+print(1)
<FF>
-print 2
+print(2) |
|
Date |
User |
Action |
Args |
2011-02-19 23:57:25 | cgohlke | set | recipients:
+ cgohlke |
2011-02-19 23:57:25 | cgohlke | set | messageid: <1298159845.78.0.925914963765.issue11250@psf.upfronthosting.co.za> |
2011-02-19 23:57:24 | cgohlke | link | issue11250 messages |
2011-02-19 23:57:23 | cgohlke | create | |
|