Port get-tor-exists script to Python 3.
commit7cdc8cf5a94e677b3a0163a6e42cd2e9785cb37a
authorPhilipp Winter <phw@nymity.ch>
Thu, 30 Jan 2020 00:42:31 +0000 (29 16:42 -0800)
committerPhilipp Winter <phw@nymity.ch>
Wed, 19 Feb 2020 18:05:41 +0000 (19 10:05 -0800)
tree8d89fa1856c2000527333eb04848608cb0b561c4
parent26c2708f2449bd83ab7361f560ffbb0d870e8f51
Port get-tor-exists script to Python 3.

This involved the following:

* Changing the shebang from "python" to "python3".

* Using the ipaddress instead of the ipaddr module.

* Some str/bytes conversions.

* Getting rid of WebClientContextFactory.

* Using io.TextIOBase instead of file.

* Make the calling proxy.py expect str instead of bytes.
bridgedb/proxy.py
scripts/get-tor-exits