mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Replace boolean test with is None
This commit is contained in:
parent
0f4940c0a8
commit
094662a165
4 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue