Fix broken tests on py2
This commit is contained in:
parent
0d7b4b4ad9
commit
74352462f5
|
@ -6,7 +6,11 @@ from os import path as op
|
|||
import send2trash.plat_other
|
||||
from send2trash.plat_other import send2trash as s2t
|
||||
from send2trash.compat import PY3
|
||||
from configparser import ConfigParser
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
# py2
|
||||
from ConfigParser import ConfigParser
|
||||
from tempfile import mkdtemp, NamedTemporaryFile, mktemp
|
||||
import shutil
|
||||
import stat
|
||||
|
|
Loading…
Reference in New Issue