瀏覽代碼

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.