]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 20 Aug 2004 03:47:14 +0000 (03:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 20 Aug 2004 03:47:14 +0000 (03:47 +0000)
Lib/compiler/pycodegen.py
Lib/lib-tk/tkFont.py
Lib/plat-freebsd6/IN.py
Lib/posixpath.py
Lib/test/test__locale.py
Lib/test/test_posixpath.py
Lib/test/test_zipfile.py

index 02e7764047475a5fedacfa35bb61bebb0645d848..87558b211b1569525eba0a404d8a496ec690c582 100644 (file)
@@ -372,7 +372,7 @@ class CodeGenerator:
             ndecorators = len(node.decorators.nodes)
         else:
             ndecorators = 0
+
         gen = self.FunctionGen(node, self.scopes, isLambda,
                                self.class_name, self.get_module())
         walk(node.code, gen)
index 06e0c985c16ad00663079d71a880509550d9a817..3979e993c51a69228cfe3422a72c164322bebd0f 100644 (file)
@@ -29,7 +29,7 @@ def nametofont(name):
     """Given the name of a tk named font, returns a Font representation.
     """
     return Font(name=name, exists=True)
-    
+
 class Font:
 
     """Represents a named font.
@@ -50,7 +50,7 @@ class Font:
     slant -- font slant: ROMAN, ITALIC
     underline -- font underlining: false (0), true (1)
     overstrike -- font strikeout: false (0), true (1)
-        
+
     """
 
     def _set(self, kw):
@@ -95,7 +95,7 @@ class Font:
                 root.tk.call("font", "configure", self.name, *font)
         else:
             # create new font (raises TclError if the font exists)
-            root.tk.call("font", "create", self.name, *font) 
+            root.tk.call("font", "create", self.name, *font)
             self.delete_font = True
         # backlinks!
         self._root  = root
@@ -120,7 +120,7 @@ class Font:
                 self._call("font", "delete", self.name)
         except (AttributeError, Tkinter.TclError):
             pass
-  
+
     def copy(self):
         "Return a distinct copy of the current font"
         return Font(self._root, **self.actual())
index ccd94aea9940dda56bc8aa9ea98bfa6334d8877b..31e9e130a0fa96f1060dc39981386d5f686bf2df 100644 (file)
@@ -1,13 +1,13 @@
 # Generated by h2py from /usr/include/netinet/in.h
 
 # Included from sys/cdefs.h
-def __P(protos): return protos          
+def __P(protos): return protos
 
-def __STRING(x): return #x              
+def __STRING(x): return #x
 
-def __XSTRING(x): return __STRING(x)    
+def __XSTRING(x): return __STRING(x)
 
-def __P(protos): return ()              
+def __P(protos): return ()
 
 def __STRING(x): return "x"
 
index 345a74268cbc243049b4e7e56a8aec6588cbfb7e..1a259346b83c1b6490f5f00219d02b5959197410 100644 (file)
@@ -404,7 +404,7 @@ symbolic links encountered in the path."""
         bits = ['/'] + filename.split('/')[1:]
     else:
         bits = filename.split('/')
-        
+
     for i in range(2, len(bits)+1):
         component = join(*bits[0:i])
         # Resolve symbolic links.
@@ -415,10 +415,10 @@ symbolic links encountered in the path."""
                 return abspath(join(*([component] + bits[i:])))
             else:
                 newpath = join(*([resolved] + bits[i:]))
-                return realpath(newpath)        
+                return realpath(newpath)
 
     return abspath(filename)
-    
+
 
 def _resolve_link(path):
     """Internal helper function.  Takes a path and follows symlinks
index c113c6384ee79a891d3d643c23e4c3f66fe61f43..97aaef870b966c9bdbe48d86e65ac97bb25a3972 100644 (file)
@@ -33,6 +33,6 @@ try:
         if nl_radixchar != li_radixchar:
             print "%r != %r" % (nl_radixchar, li_radixchar)
     if not saw_locale:
-            raise ImportError, "None of the listed locales found"
+        raise ImportError, "None of the listed locales found"
 finally:
     setlocale(LC_NUMERIC, oldlocale)
index 75cd50b5872e6f33641b1059aac66365753b8733..1fc3e7c4a6174a54c838cc771993bfe420dfedd3 100644 (file)
@@ -397,7 +397,7 @@ class PosixPathTest(unittest.TestCase):
     def test_realpath(self):
         self.assert_("foo" in realpath("foo"))
         self.assertRaises(TypeError, posixpath.realpath)
-          
+
     if hasattr(os, "symlink"):
         def test_realpath_basic(self):
             # Basic operation.
@@ -406,7 +406,7 @@ class PosixPathTest(unittest.TestCase):
                 self.assertEqual(realpath(ABSTFN), ABSTFN+"1")
             finally:
                 self.safe_remove(ABSTFN)
-        
+
         def test_realpath_symlink_loops(self):
             # Bug #930024, return the path unchanged if we get into an infinite
             # symlink loop.
@@ -429,7 +429,7 @@ class PosixPathTest(unittest.TestCase):
                 self.safe_remove(ABSTFN+"1")
                 self.safe_remove(ABSTFN+"2")
 
-        def test_realpath_resolve_parents(self):                        
+        def test_realpath_resolve_parents(self):
             # We also need to resolve any symlinks in the parents of a relative
             # path passed to realpath. E.g.: current working directory is
             # /usr/doc with 'doc' being a symlink to /usr/share/doc. We call
index 15f97b5ee65721b57f7df7fb13003462a8615694..57e7423d6a39138ebaec324cec5f2d73a979c427 100644 (file)
@@ -3,7 +3,7 @@ try:
     import zlib
 except ImportError:
     zlib = None
-    
+
 import zipfile, os, unittest
 
 from StringIO import StringIO