mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-02 11:20: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
|
from .testutils import ConnectingTestCase, slow, reload
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# Python 2.7
|
||||||
reload
|
reload
|
||||||
except NameError:
|
except NameError:
|
||||||
try:
|
# Python 3
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
except ImportError:
|
|
||||||
from imp import reload
|
|
||||||
|
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from psycopg2 import errorcodes
|
from psycopg2 import errorcodes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user