tests/test_source_chars.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
--- a/tests/test_source_chars.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/tests/test_source_chars.py	Tue Apr 30 14:20:22 2013 +0100
@@ -57,10 +57,10 @@
     """Eliminates trailing spaces IN PLACE.  Use with extreme care
     and only after a backup or with version-controlled code."""
     assert os.path.isdir(dirname), "Directory not found!"
-    print "This will eliminate all trailing spaces in py files under %s." % dirname
-    ok = raw_input("Shall I proceed?  type YES > ")
+    print("This will eliminate all trailing spaces in py files under %s." % dirname)
+    ok = input("Shall I proceed?  type YES > ")
     if ok != 'YES':
-        print 'aborted by user'
+        print('aborted by user')
         return
     w = GlobDirectoryWalker(dirname, '*.py')
     for filename in w:
@@ -77,8 +77,8 @@
 
         if badChars != 0:
             open(filename, 'w').write(string.join(cleaned, '\n'))
-            print "file %s contained %d trailing spaces, FIXED" % (filename, badChars)
-    print 'done'
+            print("file %s contained %d trailing spaces, FIXED" % (filename, badChars))
+    print('done')
 
 def makeSuite():
     return makeSuiteForClasses(SourceTester)