diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-11-13 21:51:26 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-11-13 21:51:26 +0000 |
commit | 732d9ce39273060eebc86756916cfca1c64e1607 (patch) | |
tree | 97b614b8dcee6d5aaf289f8c3b5062ed1a6c51c2 /Lib | |
parent | e1ee2e18658e6edd3323888ffd6a33b928e87f52 (diff) | |
download | cpython-732d9ce39273060eebc86756916cfca1c64e1607.tar.gz |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/hmac.py | 3 | ||||
-rw-r--r-- | Lib/pprint.py | 2 | ||||
-rw-r--r-- | Lib/test/test_dumbdbm.py | 4 | ||||
-rw-r--r-- | Lib/test/test_hmac.py | 3 | ||||
-rw-r--r-- | Lib/test/test_pep247.py | 2 |
5 files changed, 6 insertions, 8 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py index 6af564edaf..cae08002e5 100644 --- a/Lib/hmac.py +++ b/Lib/hmac.py @@ -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) - diff --git a/Lib/pprint.py b/Lib/pprint.py index 2952685732..b16fb08020 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -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 diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py index 51b62172e3..d62c74d41b 100644 --- a/Lib/test/test_dumbdbm.py +++ b/Lib/test/test_dumbdbm.py @@ -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() diff --git a/Lib/test/test_hmac.py b/Lib/test/test_hmac.py index ef926bdf29..626b93761d 100644 --- a/Lib/test/test_hmac.py +++ b/Lib/test/test_hmac.py @@ -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() - diff --git a/Lib/test/test_pep247.py b/Lib/test/test_pep247.py index 3a35164bd2..88f246131b 100644 --- a/Lib/test/test_pep247.py +++ b/Lib/test/test_pep247.py @@ -1,6 +1,6 @@ # # Test suite to check compliance with PEP 247, the standard API for -# hashing algorithms. +# hashing algorithms. # import md5, sha, hmac |