diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 01:29:16 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 01:29:16 +0000 |
commit | ed9b5eb892fe387de08b75d067c76198779620e5 (patch) | |
tree | f7376c51477a95f2f7e56e8771a57d1ff2274fe2 /Lib/hmac.py | |
parent | 1b237fd3922481730da8b067f6c9b40c48282835 (diff) | |
download | cpython-ed9b5eb892fe387de08b75d067c76198779620e5.tar.gz |
Replace boolean test with is None
Diffstat (limited to 'Lib/hmac.py')
-rw-r--r-- | Lib/hmac.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/hmac.py b/Lib/hmac.py index c9e4ae8047..ba0a63c780 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): |