Skip to content

Commit

Permalink
Update socks.py
Browse files Browse the repository at this point in the history
In order to get this work under debian and python 3.5 I had to change basestring to str.
I followed instructions from here amnong/easywebdav#26.

Thnx!
  • Loading branch information
PcoWegenenVerkeer authored May 24, 2018
1 parent 374a075 commit 447b087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httplib2/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def connect(self, destpair):
To select the proxy server use setproxy().
"""
# Do a minimal input check first
if (not type(destpair) in (list,tuple)) or (len(destpair) < 2) or (not isinstance(destpair[0], basestring)) or (type(destpair[1]) != int):
if (not type(destpair) in (list,tuple)) or (len(destpair) < 2) or (not isinstance(destpair[0], str)) or (type(destpair[1]) != int):
raise GeneralProxyError((5, _generalerrors[5]))
if self.__proxy[0] == PROXY_TYPE_SOCKS5:
if self.__proxy[2] != None:
Expand Down

0 comments on commit 447b087

Please sign in to comment.