Replace boolean test with is None

This commit is contained in:
Raymond Hettinger 2002-06-01 01:29:16 +00:00
parent 0f4940c0a8
commit 094662a165
4 changed files with 5 additions and 5 deletions

View file

@ -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):