summaryrefslogtreecommitdiffstats
path: root/Lib/hmac.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 01:29:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-01 01:29:16 (GMT)
commit094662a16542d1cc56713b35dde39089490dec35 (patch)
treeeb433a4bebe8dc9eb28de9f7655f8fab24498a52 /Lib/hmac.py
parent0f4940c0a8d2ac66ccf90fb12739967915043406 (diff)
downloadcpython-094662a16542d1cc56713b35dde39089490dec35.zip
cpython-094662a16542d1cc56713b35dde39089490dec35.tar.gz
cpython-094662a16542d1cc56713b35dde39089490dec35.tar.bz2
Replace boolean test with is None
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r--Lib/hmac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py
index c9e4ae8..ba0a63c 100644
--- a/Lib/hmac.py
+++ b/Lib/hmac.py
@@ -46,7 +46,7 @@ class HMAC:
key = key + chr(0) * (blocksize - len(key))
self.outer.update(_strxor(key, opad))
self.inner.update(_strxor(key, ipad))
- if (msg):
+ if msg is not None:
self.update(msg)
## def clear(self):