summaryrefslogtreecommitdiffstats
path: root/Lib/hmac.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-21 02:41:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-08-21 02:41:33 (GMT)
commitc3f810fb56d8d7ac37ae9c13cbd03d4c7f71dd2e (patch)
treeb7e5f1747b69e2e01e3578ce20644aaa56f0045d /Lib/hmac.py
parentc44abb127b3567d7f371d84e767641649fa2137c (diff)
downloadcpython-c3f810fb56d8d7ac37ae9c13cbd03d4c7f71dd2e.zip
cpython-c3f810fb56d8d7ac37ae9c13cbd03d4c7f71dd2e.tar.gz
cpython-c3f810fb56d8d7ac37ae9c13cbd03d4c7f71dd2e.tar.bz2
remove outdated comment
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r--Lib/hmac.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py
index 0f59fd4..4bbdbc4 100644
--- a/Lib/hmac.py
+++ b/Lib/hmac.py
@@ -58,8 +58,6 @@ class HMAC:
if hasattr(self.inner, 'block_size'):
blocksize = self.inner.block_size
if blocksize < 16:
- # Very low blocksize, most likely a legacy value like
- # Lib/sha.py and Lib/md5.py have.
_warnings.warn('block_size of %d seems too small; using our '
'default of %d.' % (blocksize, self.blocksize),
RuntimeWarning, 2)
@@ -79,9 +77,6 @@ class HMAC:
if msg is not None:
self.update(msg)
-## def clear(self):
-## raise NotImplementedError, "clear() method not available in HMAC."
-
def update(self, msg):
"""Update this hashing object with the string msg.
"""