Преглед изворни кода

Make the hs_ntor_ref logic more correct when there is no sha3 module

Nick Mathewson пре 8 година
родитељ
комит
ee849ee8b6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/test/hs_ntor_ref.py

+ 1 - 1
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.