[tor-commits] [tor/master] Make the hs_ntor_ref logic more correct when there is no sha3 module

nickm at torproject.org nickm at torproject.org
Wed Aug 2 16:53:24 UTC 2017


commit ee849ee8b6d099fb4de9d37ce6063a8955204b82
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Aug 2 12:44:39 2017 -0400

    Make the hs_ntor_ref logic more correct when there is no sha3 module
---
 src/test/hs_ntor_ref.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/hs_ntor_ref.py b/src/test/hs_ntor_ref.py
index 46e0e3fa4..3dd2d6d6e 100644
--- a/src/test/hs_ntor_ref.py
+++ b/src/test/hs_ntor_ref.py
@@ -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.





More information about the tor-commits mailing list