]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the hs_ntor_ref logic more correct when there is no sha3 module
authorNick Mathewson <nickm@torproject.org>
Wed, 2 Aug 2017 16:44:39 +0000 (12:44 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 Aug 2017 16:44:46 +0000 (12:44 -0400)
src/test/hs_ntor_ref.py

index 46e0e3fa4cc5b4d9a6d5734265d94f9c066a4288..3dd2d6d6e0e7f6ae2202b94262a183e6b4ddc485 100644 (file)
@@ -60,7 +60,7 @@ try:
 except ImportError:
     # In python 3.6, the sha3 functions are in hashlib whether we
     # import sha3 or not.
-    pass
+    sha3 = None
 
 try:
     # Pull the sha3 functions in.