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