]> granicus.if.org Git - python/commitdiff
use blank object instead
authorBenjamin Peterson <benjamin@python.org>
Sat, 21 Aug 2010 02:43:31 +0000 (02:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 21 Aug 2010 02:43:31 +0000 (02:43 +0000)
Lib/hmac.py

index 4bbdbc47787029b650dd314a2e5b9c968b6c8c69..5572751f6ece30bd1d3ff9122def9d2f57d8e042 100644 (file)
@@ -15,7 +15,7 @@ digest_size = None
 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
 # that the latter return very quickly.  HMAC("") in contrast is quite
 # expensive.
-_secret_backdoor_key = []
+_secret_backdoor_key = object()
 
 class HMAC:
     """RFC 2104 HMAC class.  Also complies with RFC 4231.