]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Tue, 13 Nov 2001 21:51:26 +0000 (21:51 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 13 Nov 2001 21:51:26 +0000 (21:51 +0000)
Lib/hmac.py
Lib/pprint.py
Lib/test/test_dumbdbm.py
Lib/test/test_hmac.py
Lib/test/test_pep247.py

index 6af564edafd5a71cc75302569dda8230a5af2978..cae08002e55dfaa909dd00cd3f695a459415f907 100644 (file)
@@ -35,7 +35,7 @@ class HMAC:
         self.outer = digestmod.new()
         self.inner = digestmod.new()
         self.digest_size = digestmod.digest_size
-        
+
         blocksize = 64
         ipad = "\x36" * blocksize
         opad = "\x5C" * blocksize
@@ -97,4 +97,3 @@ def new(key, msg = None, digestmod = None):
     method.
     """
     return HMAC(key, msg, digestmod)
-
index 29526857328a249aed25fd78c0a43871aca70067..b16fb08020731ddbbc54d3d871ae632ba8a0c7b9 100644 (file)
@@ -283,7 +283,7 @@ def _safe_repr(object, context, maxlevels, level):
                 recursive = 1
         del context[objid]
         return format % _commajoin(components), readable, recursive
-        
+
     rep = `object`
     return rep, (rep and not rep.startswith('<')), 0
 
index 51b62172e3d602301737d2457ee15aef6aa67d68..d62c74d41b91385446a3901e56824ccdacb70d73 100644 (file)
@@ -24,7 +24,7 @@ class DumbDBMTestCase(unittest.TestCase):
         unittest.TestCase.__init__(self, *args)
         self._dkeys = self._dict.keys()
         self._dkeys.sort()
-        
+
     def test_dumbdbm_creation(self):
         for ext in [".dir", ".dat", ".bak"]:
             try: os.unlink(self._fname+ext)
@@ -57,7 +57,7 @@ class DumbDBMTestCase(unittest.TestCase):
         keys = self.keys_helper(f)
         for key in self._dict:
             self.assertEqual(self._dict[key], f[key])
-        
+
     def keys_helper(self, f):
         keys = f.keys()
         keys.sort()
index ef926bdf293514345d4e03b218fa7173309e7cc9..626b93761db431dcb2cf7ca51343cc345c99bd61 100644 (file)
@@ -45,7 +45,7 @@ class ConstructorTestCase(unittest.TestCase):
             h = hmac.HMAC("key", "", sha)
         except:
             self.fail("Constructor call with sha module raised exception.")
-        
+
 class SanityTestCase(unittest.TestCase):
     def test_default_is_md5(self):
         """Testing if HMAC defaults to MD5 algorithm."""
@@ -106,4 +106,3 @@ def test_main():
 
 if __name__ == "__main__":
     test_main()
-
index 3a35164bd22ee0e3b30b0854fde82fab148e5df9..88f246131b14fde306321d2d1e034e7102bc5511 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Test suite to check compliance with PEP 247, the standard API for
-# hashing algorithms. 
+# hashing algorithms.
 #
 
 import md5, sha, hmac