From 6aa23c576750e884f43e75d7fabc2fab82132160 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Mon, 20 Jan 2020 17:06:42 +0100 Subject: [PATCH] Remove backports for old Python versions --- setup.cfg | 3 --- test_zipp.py | 18 ++---------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/setup.cfg b/setup.cfg index 4848aff..0907072 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,9 +27,6 @@ testing = # upstream # local - pathlib2 - contextlib2 - unittest2 docs = # upstream diff --git a/test_zipp.py b/test_zipp.py index e4c77a2..3c4bef0 100644 --- a/test_zipp.py +++ b/test_zipp.py @@ -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