]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mechanical whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Thu, 23 Mar 2006 19:07:46 +0000 (19:07 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 23 Mar 2006 19:07:46 +0000 (19:07 +0000)
12 files changed:
Lib/bsddb/__init__.py
Lib/codecs.py
Lib/distutils/dir_util.py
Lib/locale.py
Lib/test/test_minidom.py
Lib/test/test_mmap.py
Lib/test/test_poll.py
Lib/urllib2.py
Mac/OSX/Doc/setup.py
Mac/OSX/fixapplepython23.py
Tools/msi/msi.py
setup.py

index be8e5774249ae57485fd11a1bcec03372ffc60ac..fb3c4cdbb4bb17738714c706491d91fff13de960 100644 (file)
@@ -195,7 +195,7 @@ class _DBWithCursor(_iter_mixin):
                 try:
                     self.saved_dbc_key = c.current(0,0,0)[0]
                 except db.DBError:
-                    pass                    
+                    pass
             c.close()
             del c
         for cref in self._cursor_refs.values():
index 9a217b3a19288b71d6d29452c553d624533c6a21..5e2b984f4425343bd3b965c23c84da8389e90179 100644 (file)
@@ -269,7 +269,7 @@ class StreamReader(Codec):
         if self.linebuffer:
             self.charbuffer = "".join(self.linebuffer)
             self.linebuffer = None
-            
+
         # read until we get the required number of characters (if available)
         while True:
             # can the request can be satisfied from the character buffer?
@@ -338,7 +338,7 @@ class StreamReader(Codec):
             if not keepends:
                 line = line.splitlines(False)[0]
             return line
-            
+
         readsize = size or 72
         line = ""
         # If size is given, we call read() only once
index 2248b607cf4e4b79811507da57f4fa03fab85c14..43994db3ffd7708bd3a9a9f9ae9894653ad516be 100644 (file)
@@ -31,7 +31,7 @@ def mkpath (name, mode=0777, verbose=0, dry_run=0):
     global _path_created
 
     # Detect a common bug -- name is None
-    if not isinstance(name, StringTypes):   
+    if not isinstance(name, StringTypes):
         raise DistutilsInternalError, \
               "mkpath: 'name' must be a string (got %r)" % (name,)
 
index ac8f3be35cac8fa6f135ad765a844e29d0eb388c..377cdc122a6254a69ce645e0e6ce79ae936d3c11 100644 (file)
@@ -663,7 +663,7 @@ locale_alias = {
 #
 # This maps Windows language identifiers to locale strings.
 #
-# This list has been updated from 
+# This list has been updated from
 # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp
 # to include every locale up to Windows XP.
 #
index 68aac0f44a2fbe7b36b219b85fdc65cb472583d9..a6d309f7d9abc98852344abd42a9a0a98a83b8b7 100644 (file)
@@ -1135,9 +1135,9 @@ def testPatch1094164 ():
     # Check that replacing a child with itself leaves the tree unchanged
     elem.replaceChild(e, e)
     confirm(e.parentNode is elem, "After replaceChild()")
-    
-    
-    
+
+
+
 def testReplaceWholeText():
     def setup():
         doc = parseString("<doc>a<e/>d</doc>")
index 91cfe83a69bacb4da103461db19952db1a16a078..88e54766ebb022b48f5c40936a789c47c8fecd96 100644 (file)
@@ -126,7 +126,7 @@ def test_both():
             f.seek(0, 2)
             verify(f.tell() == 512, 'Underlying file not truncated')
             f.close()
-            verify(m.size() == 512, 'New size not reflected in file') 
+            verify(m.size() == 512, 'New size not reflected in file')
 
         m.close()
 
index f99c37ff9ee0cda14cc573a137bbd9aaeb07020c..3a48bcecaf49153dca0e257547eb5c9e8beeb0de 100644 (file)
@@ -185,7 +185,7 @@ def test_poll3():
     if x != 5:
         print 'Overflow must have occurred'
     print 'Poll test 3 complete'
-    
+
 
 test_poll1()
 test_poll2()
index 85cc4e1d916410cab13f6439fea5cc384f58f539..33babe4bdfba291fd81b68e6d9eb54cd481c01b1 100644 (file)
@@ -1064,7 +1064,7 @@ def parse_keqv_list(l):
 
 def parse_http_list(s):
     """Parse lists as described by RFC 2068 Section 2.
-    
+
     In particular, parse comma-separated lists where the elements of
     the list may include quoted-strings.  A quoted-string could
     contain a comma.  A non-quoted string could have quotes in the
@@ -1096,7 +1096,7 @@ def parse_http_list(s):
 
         if cur == '"':
             quote = True
-        
+
         part += cur
 
     # append last part
index ee17226ca5539b84c3f4fea0324bf025b457dec9..bd86a20a8386421148297056e7919d282e6af195 100644 (file)
@@ -57,7 +57,7 @@ class DocBuild(build):
                 (self.doc_version,self.doc_version)
         tarfile = 'html-%s.tar.bz2' % self.doc_version
         dirname = 'Python-Docs-%s' % self.doc_version
-        
+
         if os.path.exists(self.build_html):
             raise RuntimeError, '%s: already exists, please remove and try again' % self.build_html
         os.chdir(self.build_base)
index ce54890eb4aaf29cb7c874c9b6e9eee4835178fa..181181ea79fc10c719ac0c5a63b02c3b01bb04eb 100644 (file)
@@ -43,12 +43,12 @@ def findline(lines, start):
         if lines[i][:len(start)] == start:
             return i
     return -1
-    
+
 def fix(makefile, do_apply):
     """Fix the Makefile, if required."""
     fixed = False
     lines = open(makefile).readlines()
-    
+
     for old, new in CHANGES:
         i = findline(lines, new)
         if i >= 0:
@@ -61,7 +61,7 @@ def fix(makefile, do_apply):
             return 2
         lines[i] = new
         fixed = True
-       
+
     if fixed:
         if do_apply:
             print 'fixapplepython23: Fix to Apple-installed Python 2.3 applied'
@@ -74,7 +74,7 @@ def fix(makefile, do_apply):
     else:
         print 'fixapplepython23: No fix needed, appears to have been applied before'
         return 0
-        
+
 def makescript(filename, compiler):
     """Create a wrapper script for a compiler"""
     dirname = os.path.split(filename)[0]
@@ -85,7 +85,7 @@ def makescript(filename, compiler):
     fp.close()
     os.chmod(filename, 0755)
     print 'fixapplepython23: Created', filename
-    
+
 def main():
     # Check for -n option
     if len(sys.argv) > 1 and sys.argv[1] == '-n':
@@ -113,7 +113,6 @@ def main():
     #  Finally fix the makefile
     rv = fix(MAKEFILE, do_apply)
     sys.exit(rv)
-    
+
 if __name__ == '__main__':
     main()
-    
index f51622cd8ca64054b7a57c39d4882bd1f826849f..b63952021ae1de71eea9e796bd6507dc5a27df2e 100644 (file)
@@ -134,7 +134,7 @@ pythondll_uuid = {
     "24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}",
     "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}"
     } [major+minor]
-    
+
 
 # Build the mingw import library, libpythonXY.a
 # This requires 'nm' and 'dlltool' executables on your PATH
index 7d874cdd30602afc0d296c1f17265cc9dd3b2209..2f49cf7a80a9c9f6f5229274288d93f11b1e63e1 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -159,7 +159,7 @@ class PyBuildExt(build_ext):
                     line = line.split()
                     remove_modules.append(line[0])
                 input.close()
-    
+
             for ext in self.extensions[:]:
                 if ext.name in remove_modules:
                     self.extensions.remove(ext)