]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 16 Mar 2001 08:29:48 +0000 (08:29 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 16 Mar 2001 08:29:48 +0000 (08:29 +0000)
Lib/dircache.py
Lib/inspect.py
Lib/pydoc.py
Lib/test/test_scope.py
Lib/urllib2.py
Lib/whichdb.py

index 6171ff83fde9aac327ad9377de9c6777c5ca5dc9..be2f314cb5166f834af2477a8a8538636123a83c 100644 (file)
@@ -11,9 +11,9 @@ __all__ = ["listdir", "opendir", "annotate", "reset"]
 cache = {}
 
 def reset():
-      """Reset the cache completely."""
-      global cache
-      cache = {}
+    """Reset the cache completely."""
+    global cache
+    cache = {}
 
 def listdir(path):
     """List directory contents, using cache."""
index a7c78597da3f2212a4932be3e65c8b2ff207ddc6..57f991c59812f40e70e4e7d3a172dad037afbda1 100644 (file)
@@ -643,5 +643,3 @@ def stack(context=1):
 def trace(context=1):
     """Return a list of records for the stack below the current exception."""
     return getinnerframes(sys.exc_traceback, context)
-
-
index 607458b1dbe1bb517ea8bd7a832287cd9b984c56..b64e78e4bf7c6cdab46d975935cddbc434cea40c 100755 (executable)
@@ -1032,7 +1032,7 @@ class ModuleScanner(Scanner):
         children = []
         for file in os.listdir(dir):
             path = os.path.join(dir, file)
-            if ispackage(path): 
+            if ispackage(path):
                 children.append((path, package + (package and '.') + file))
             else:
                 children.append((path, package))
@@ -1416,5 +1416,3 @@ def cli():
 """ % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep)
 
 if __name__ == '__main__': cli()
-
-
index 4bd8ed7ea9b39459379f57dc36b7f5ae5295134f..5df0328d6d73f4049f34590da58e4c67b7db3c7d 100644 (file)
@@ -388,7 +388,7 @@ print "16. check leaks"
 
 class Foo:
     count = 0
-    
+
     def __init__(self):
         Foo.count += 1
 
@@ -400,9 +400,8 @@ def f1():
     def f2():
         return x
     f2()
-    
+
 for i in range(100):
     f1()
 
 verify(Foo.count == 0)
-
index a1e157bca09d45335adde11bfd362e1277d1e94f..d03d8fbeab205a843f1f1a014731bd56cc88062b 100644 (file)
@@ -640,7 +640,7 @@ class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
 
     def http_error_401(self, req, fp, code, msg, headers):
         host = urlparse.urlparse(req.get_full_url())[1]
-        return self.http_error_auth_reqed('www-authenticate', 
+        return self.http_error_auth_reqed('www-authenticate',
                                           host, req, headers)
 
 
@@ -650,7 +650,7 @@ class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
 
     def http_error_407(self, req, fp, code, msg, headers):
         host = req.get_host()
-        return self.http_error_auth_reqed('proxy-authenticate', 
+        return self.http_error_auth_reqed('proxy-authenticate',
                                           host, req, headers)
 
 
index fe54cc5ae39b59e95144b2f993ec4d27b1788ebb..8687b719b21a62075e8644f3977f53dc95646e87 100644 (file)
@@ -6,7 +6,7 @@ if os.sep==".":
     endsep = "/"
 else:
     endsep = "."
+
 def whichdb(filename):
     """Guess which db package to use to open a db file.