]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Mon, 3 Apr 2006 02:46:44 +0000 (02:46 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 3 Apr 2006 02:46:44 +0000 (02:46 +0000)
Lib/sgmllib.py
Lib/test/test_traceback.py
Lib/test/test_urllib2.py

index 784dbe1b8a402e4b20927079ce62d074b19b1d4e..3e85a910e049809a7a580bda779ce8c58af9e43d 100644 (file)
@@ -270,7 +270,7 @@ class SGMLParser(markupbase.ParserBase):
             if not rest:
                 attrvalue = attrname
             else:
-                if (attrvalue[:1] == "'" == attrvalue[-1:] or 
+                if (attrvalue[:1] == "'" == attrvalue[-1:] or
                     attrvalue[:1] == '"' == attrvalue[-1:]):
                     # strip quotes
                     attrvalue = attrvalue[1:-1]
index 269c6283c181b029c38a52af4df070c69adcb082..22c04567a7232f2fa1901e14d0cabf150a901517 100644 (file)
@@ -23,7 +23,7 @@ class TracebackCases(unittest.TestCase):
     def syntax_error_without_caret(self):
         # XXX why doesn't compile raise the same traceback?
         import test.badsyntax_nocaret
-    
+
     def syntax_error_bad_indentation(self):
         compile("def spam():\n  print 1\n print 2", "?", "exec")
 
index c79a733e1a211f8b8013565ece843f397544f13f..58b54c1f9a0cede16d0d9f74b0270ff3438b91c8 100644 (file)
@@ -355,12 +355,12 @@ class HandlerTests(unittest.TestCase):
             "file://%s%s" % (socket.gethostbyname('localhost'), urlpath),
             ]
         try:
-            localaddr = socket.gethostbyname(socket.gethostname())    
+            localaddr = socket.gethostbyname(socket.gethostname())
         except socket.gaierror:
             localaddr = ''
         if localaddr:
             urls.append("file://%s%s" % (localaddr, urlpath))
-            
+
         for url in urls:
             f = open(TESTFN, "wb")
             try: