Skip to content

Commit

Permalink
Remove backports for old Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbraz committed Jan 20, 2020
1 parent 37113cc commit 6aa23c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ testing =
# upstream

# local
pathlib2
contextlib2
unittest2

docs =
# upstream
Expand Down
18 changes: 2 additions & 16 deletions test_zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,11 @@
import zipfile
import posixpath
import contextlib
import pathlib
import unittest
import tempfile
import shutil

try:
import pathlib
except ImportError:
import pathlib2 as pathlib

if not hasattr(contextlib, 'ExitStack'):
import contextlib2
contextlib.ExitStack = contextlib2.ExitStack

try:
import unittest

unittest.TestCase.subTest
except AttributeError:
import unittest2 as unittest

import zipp

__metaclass__ = type
Expand Down

0 comments on commit 6aa23c5

Please sign in to comment.