Remove unneeded imports
This commit is contained in:
parent
95fe038752
commit
537c5aeda0
|
@ -203,11 +203,6 @@ else:
|
||||||
del builtins
|
del builtins
|
||||||
|
|
||||||
# Exception "constants" to support Python 2 through Python 3
|
# Exception "constants" to support Python 2 through Python 3
|
||||||
try:
|
|
||||||
BROKEN_PIPE_ERROR = (BrokenPipeError,)
|
|
||||||
except NameError:
|
|
||||||
BROKEN_PIPE_ERROR = (IOError,)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
HTTP_ERRORS = (HTTPError, URLError, socket.error, ssl.SSLError)
|
HTTP_ERRORS = (HTTPError, URLError, socket.error, ssl.SSLError)
|
||||||
|
|
Loading…
Reference in New Issue