]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Sun, 15 Jun 2003 23:26:30 +0000 (23:26 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 15 Jun 2003 23:26:30 +0000 (23:26 +0000)
Lib/pdb.py
Lib/test/test_codeop.py
Lib/test/test_dummy_thread.py
Lib/test/test_grammar.py
Lib/test/test_mimetools.py
Lib/test/test_urllibnet.py
Lib/urllib2.py

index ae2fab6c56f309996591419e1a7d65a6f9fd0440..9a08a6a8db6a61829a5658c5bf94a48c0fc82d75 100755 (executable)
@@ -397,7 +397,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
             except ValueError:
                 print 'Breakpoint index %r is not a number' % i
                 continue
-            
+
             if not (0 <= i < len(bdb.Breakpoint.bpbynumber)):
                 print 'No breakpoint numbered', i
                 continue
index 630af49c72dda4c2da99a74c55245d67d057a91e..5d06f2c32042cd12a3d731c4f8066778fe878b37 100644 (file)
@@ -65,12 +65,12 @@ class CodeopTests(unittest.TestCase):
                             compile("pass", "<input>", 'single',
                                     PyCF_DONT_IMPLY_DEDENT))
             self.assertEquals(compile_command("\n"),
-                            compile("pass", "<input>", 'single', 
+                            compile("pass", "<input>", 'single',
                                     PyCF_DONT_IMPLY_DEDENT))
         else:
             av("")
             av("\n")
-        
+
         av("a = 1")
         av("\na = 1")
         av("a = 1\n")
@@ -125,9 +125,9 @@ class CodeopTests(unittest.TestCase):
         ai("if 1:")
         ai("if 1:\n")
         ai("if 1:\n pass\n if 1:\n  pass\n else:")
-        ai("if 1:\n pass\n if 1:\n  pass\n else:\n")          
-        ai("if 1:\n pass\n if 1:\n  pass\n else:\n  pass") 
-        
+        ai("if 1:\n pass\n if 1:\n  pass\n else:\n")
+        ai("if 1:\n pass\n if 1:\n  pass\n else:\n  pass")
+
         ai("def x():")
         ai("def x():\n")
         ai("def x():\n\n")
@@ -156,7 +156,7 @@ class CodeopTests(unittest.TestCase):
         ai("a @")
         ai("a b @")
         ai("a ** @")
-        
+
         ai("a = ")
         ai("a = 9 +")
 
index 3e79f8d924651590a32f1a786951ead6778612c6..f274e0a0d0f6c8eea4f103be916acb4e6ec38804 100644 (file)
@@ -109,7 +109,7 @@ class MiscTests(unittest.TestCase):
             _thread.interrupt_main()
         self.failUnlessRaises(KeyboardInterrupt, _thread.start_new_thread,
                               call_interrupt, tuple())
-    
+
     def test_interrupt_in_main(self):
         # Make sure that if interrupt_main is called in main threat that
         # KeyboardInterrupt is raised instantly.
index cb777279dfee01432b4bad695f32b4e9cd9b51a4..c57bbede1d169924e5a72d998ea6902d64286310 100644 (file)
@@ -701,7 +701,7 @@ print [3 * x for x in nums]
 print [x for x in nums if x > 2]
 print [(i, s) for i in nums for s in strs]
 print [(i, s) for i in nums for s in [f for f in strs if "n" in f]]
-print [(lambda a:[a**i for i in range(a+1)])(j) for j in range(5)] 
+print [(lambda a:[a**i for i in range(a+1)])(j) for j in range(5)]
 
 def test_in_func(l):
     return [None < x < 3 for x in l if x > 2]
index 52809fa2b0a26243cac8b526a15dd2182d200231..96bbb36b845767da7205bda5c98a0ffc3be2fa26 100644 (file)
@@ -48,4 +48,3 @@ def test_main():
 
 if __name__=="__main__":
     test_main()
-
index dcf9103603b196d379cc9be069f03ccba4fe5d8e..7055522381c5276297070ae80c907d49b098971b 100644 (file)
@@ -84,7 +84,7 @@ class urlopenNetworkTests(unittest.TestCase):
         self.assertEqual(gotten_url, URL)
 
     def test_fileno(self):
-        if (sys.platform in ('win32',) or 
+        if (sys.platform in ('win32',) or
                 not hasattr(os, 'fdopen')):
             # On Windows, socket handles are not file descriptors; this
             # test can't pass on Windows.
index 1ebe6c0dd0060c895bda6ef19dc7175e9b004136..5734be7efca62c5f0a85d467b94ed9de15fea525 100644 (file)
@@ -412,7 +412,7 @@ class BaseHandler:
             # classes which are not aware of handler_order).
             return True
         return self.handler_order < other.handler_order
-            
+
 
 class HTTPDefaultErrorHandler(BaseHandler):
     def http_error_default(self, req, fp, code, msg, hdrs):