]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 25 Aug 2006 22:05:39 +0000 (22:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 25 Aug 2006 22:05:39 +0000 (22:05 +0000)
Lib/test/test_parser.py
Lib/test/test_tokenize.py
Tools/msi/msi.py

index bddec1658f7d6a721f6e122e540f17f396a567dc..4bd2943b11333ac2e945c8887b8b623e3b6f1eb8 100644 (file)
@@ -199,7 +199,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
                         yield x
             else:
                 yield tree
-            
+
         terminals = list(walk(st2))
         self.assertEqual([
             (1, 'def', 1, 0),
index 86f1b9b404fda1646fa84e27f8fea8a9126ef510..27de46ffac21c8d192d3e668c3fb6a9f72d89a21 100644 (file)
@@ -33,7 +33,7 @@ NAME        'False'       (3, 11) (3, 16)
 COMMENT     '# NEWLINE'   (3, 17) (3, 26)
 NEWLINE     '\\n'          (3, 26) (3, 27)
 DEDENT      ''            (4, 0) (4, 0)
-                                                    
+
 
 There will be a bunch more tests of specific source patterns.
 
@@ -43,7 +43,7 @@ regenerate the original program text from the tokens.
 There are some standard formatting practices that are easy to get right.
 
 >>> roundtrip("if x == 1:\\n"
-...           "    print x\\n")               
+...           "    print x\\n")
 if x == 1:
     print x
 
@@ -53,7 +53,7 @@ whitespace after the colon.  You can't see it, but it's there!
 
 >>> roundtrip("if   x  ==  1  :  \\n"
 ...           "  print x\\n")
-if   x  ==  1  :  
+if   x  ==  1  :
   print x
 
 Comments need to go in the right place.
index f06944f43069b65db3984e2b87cc27a908acca5b..12dbff5de6914a04c6cd3255deda5cf3838dda57 100644 (file)
@@ -877,7 +877,7 @@ def add_files(db):
     if not have_ctypes:
         print "WARNING: _ctypes.pyd not found, ctypes will not be included"
         extensions.remove("_ctypes.pyd")
-    
+
     # Add all .py files in Lib, except lib-tk, test
     dirs={}
     pydirs = [(root,"Lib")]