diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-02 14:04:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-02 14:23:26 -0400 |
commit | 3baf3d01cbf4cca91a8d18f4c86ae5aa05818f8e (patch) | |
tree | c1784ccc08040acd22f3aca94d10a5ed9b4e8e4b /src | |
parent | 3c97b148a42f6863ccf4b950967ce345d2fc8cbe (diff) | |
download | tor-3baf3d01cbf4cca91a8d18f4c86ae5aa05818f8e.tar.gz tor-3baf3d01cbf4cca91a8d18f4c86ae5aa05818f8e.zip |
hs_ntor_ref.py: pass only strings to subprocess.Popen
Recent Python3 versions seem to require this on Windows.
Fixes bug 26535; bug copied from ntor_ref.py on 0.3.1.1-alpha.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/hs_ntor_ref.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/hs_ntor_ref.py b/src/test/hs_ntor_ref.py index 2ed9324e1f..542b02d2e0 100644 --- a/src/test/hs_ntor_ref.py +++ b/src/test/hs_ntor_ref.py @@ -234,8 +234,11 @@ Utilities for communicating with the little-t-tor ntor wrapper to conduct the integration tests """ -PROG = b"./src/test/test-hs-ntor-cl" -enhex=lambda s: binascii.b2a_hex(s) +PROG = "./src/test/test-hs-ntor-cl" +if sys.version_info[0] >= 3: + enhex=lambda s: binascii.b2a_hex(s).decode("ascii") +else: + enhex=lambda s: binascii.b2a_hex(s) dehex=lambda s: binascii.a2b_hex(s.strip()) def tor_client1(intro_auth_pubkey_str, intro_enc_pubkey, |