-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Python upgrade readiness changes
- Loading branch information
1 parent
f3a0535
commit 2594062
Showing
4 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
version: 0.3 | ||
author: e<[email protected]> | ||
This module provides a Handler which you can use with urllib2 to allow it to tunnel your connection through a socks.sockssocket socket, with out monkey patching the original socket... | ||
This module provides a Handler which you can use with urllib2 to allow it to tunnel your connection through a socks.sockssocket socket, with out monkey patching the original socket... # noqa | ||
""" | ||
from __future__ import print_function | ||
|
||
|
@@ -19,7 +19,7 @@ | |
import six.moves.urllib.parse | ||
import six.moves.urllib.request | ||
except ImportError: # Python 3 | ||
import urllib.request as urllib2 | ||
import urllib.request as urllib2 # noqa | ||
import http.client as httplib | ||
|
||
import socks # $ pip install PySocks | ||
|
@@ -39,7 +39,7 @@ def is_ip(s): | |
socket.inet_aton(s) | ||
else: | ||
return False | ||
except: | ||
except: # noqa | ||
return False | ||
else: | ||
return True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters