Ticket #20584: 0003-Initialize-the-missing-SOCKS_PORT-variable.patch

File 0003-Initialize-the-missing-SOCKS_PORT-variable.patch, 805 bytes (added by cypherpunks, 3 years ago)
  • docs/_static/example/client_usage_using_socksipy.py

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Sun, 6 Nov 2016 13:37:49 +0000
    Subject: [PATCH 3/4] 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 b import socks # SocksiPy module 
    22import socket
    33import urllib
    44
     5SOCKS_PORT = 7000
     6
    57# Set socks proxy and wrap the urllib module
    68
    79socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', SOCKS_PORT)