summaryrefslogtreecommitdiffstats
path: root/Lib/hmac.py
diff options
context:
space:
mode:
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):