Skip to content

Commit 6aa23c5

Browse files
committed
Remove backports for old Python versions
1 parent 37113cc commit 6aa23c5

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ testing =
2727
# upstream
2828

2929
# local
30-
pathlib2
31-
contextlib2
32-
unittest2
3330

3431
docs =
3532
# upstream

test_zipp.py

+2-16
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,11 @@
66
import zipfile
77
import posixpath
88
import contextlib
9+
import pathlib
10+
import unittest
911
import tempfile
1012
import shutil
1113

12-
try:
13-
import pathlib
14-
except ImportError:
15-
import pathlib2 as pathlib
16-
17-
if not hasattr(contextlib, 'ExitStack'):
18-
import contextlib2
19-
contextlib.ExitStack = contextlib2.ExitStack
20-
21-
try:
22-
import unittest
23-
24-
unittest.TestCase.subTest
25-
except AttributeError:
26-
import unittest2 as unittest
27-
2814
import zipp
2915

3016
__metaclass__ = type

0 commit comments

Comments
 (0)