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:
Jon Dufresne 2019-03-16 07:59:19 -07:00
parent ad4c6a4673
commit 5148d3932d

View File

@ -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