commit e5863bbc073103cfe8803c8fe990a2eec08b7355 Author: cypherpunks cypherpunks@torproject.org Date: Sun Nov 6 13:37:49 2016 +0000
Initialize the missing SOCKS_PORT variable --- docs/_static/example/client_usage_using_socksipy.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/docs/_static/example/client_usage_using_socksipy.py b/docs/_static/example/client_usage_using_socksipy.py index c480682..6f532d5 100644 --- a/docs/_static/example/client_usage_using_socksipy.py +++ b/docs/_static/example/client_usage_using_socksipy.py @@ -2,6 +2,8 @@ import socks # SocksiPy module import socket import urllib
+SOCKS_PORT = 7000 + # Set socks proxy and wrap the urllib module
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', SOCKS_PORT)
tor-commits@lists.torproject.org