mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 02:50:08 +03:00
Remove unused import in test_errcodes
`reload()` is a builtin function in Python 2.7 and `importlib.reload()` is available on 3.4+. The fallback to `imp.reload()` is never used.
This commit is contained in:
parent
ad4c6a4673
commit
5148d3932d
|
@ -26,12 +26,11 @@ import unittest
|
|||
from .testutils import ConnectingTestCase, slow, reload
|
||||
|
||||
try:
|
||||
# Python 2.7
|
||||
reload
|
||||
except NameError:
|
||||
try:
|
||||
from importlib import reload
|
||||
except ImportError:
|
||||
from imp import reload
|
||||
# Python 3
|
||||
from importlib import reload
|
||||
|
||||
from threading import Thread
|
||||
from psycopg2 import errorcodes
|
||||
|
|
Loading…
Reference in New Issue
Block a user