[Python-checkins] r84227 - python/branches/py3k/Lib/hmac.py
benjamin.peterson
python-checkins at python.org
Sat Aug 21 04:43:31 CEST 2010
Author: benjamin.peterson
Date: Sat Aug 21 04:43:31 2010
New Revision: 84227
Log:
use blank object instead
Modified:
python/branches/py3k/Lib/hmac.py
Modified: python/branches/py3k/Lib/hmac.py
==============================================================================
--- python/branches/py3k/Lib/hmac.py (original)
+++ python/branches/py3k/Lib/hmac.py Sat Aug 21 04:43:31 2010
@@ -15,7 +15,7 @@
# 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.
More information about the Python-checkins
mailing list