Fix broken tests on py2

This commit is contained in:
Virgil Dupras 2018-07-26 08:30:39 -04:00
parent 0d7b4b4ad9
commit 74352462f5
1 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,11 @@ from os import path as op
import send2trash.plat_other import send2trash.plat_other
from send2trash.plat_other import send2trash as s2t from send2trash.plat_other import send2trash as s2t
from send2trash.compat import PY3 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 from tempfile import mkdtemp, NamedTemporaryFile, mktemp
import shutil import shutil
import stat import stat