mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-02-11 23:21:38 +00:00
Fix broken tests on py2
This commit is contained in:
@@ -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
|
||||||
|
try:
|
||||||
from configparser import ConfigParser
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user