core: ignore DeprecationWarning for imp module.

Closes #399, #437.
issue510
David Wilson 6 years ago
parent 22de7f0e72
commit c2c7caa34f

@ -36,7 +36,6 @@ import collections
import encodings.latin_1
import errno
import fcntl
import imp
import itertools
import logging
import os
@ -51,6 +50,10 @@ import warnings
import weakref
import zlib
# Python >3.7 deprecated the imp module.
warnings.filterwarnings('ignore', message='the imp module is deprecated')
import imp
# Absolute imports for <2.5.
select = __import__('select')

Loading…
Cancel
Save