From: Nick Mathewson Date: Wed, 2 Aug 2017 16:44:39 +0000 (-0400) Subject: Make the hs_ntor_ref logic more correct when there is no sha3 module X-Git-Tag: tor-0.3.1.6-rc~21^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee849ee8b6d099fb4de9d37ce6063a8955204b82;p=thirdparty%2Ftor.git Make the hs_ntor_ref logic more correct when there is no sha3 module --- diff --git a/src/test/hs_ntor_ref.py b/src/test/hs_ntor_ref.py index 46e0e3fa4c..3dd2d6d6e0 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.