Skip to content

Commit 0734928

Browse files
committed
Remove redundant compatibility code
1 parent 95ecf2a commit 0734928

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ requires-python = ">=3.9"
2424
license = "Apache-2.0"
2525
dependencies = [
2626
"zipp>=3.20",
27-
'typing-extensions>=3.6.4; python_version < "3.8"',
2827
]
2928
dynamic = ["version"]
3029

@@ -37,7 +36,6 @@ test = [
3736
"pytest >= 6, != 8.1.*",
3837

3938
# local
40-
'importlib_resources>=1.3; python_version < "3.9"',
4139
"packaging",
4240
"pyfakefs",
4341
"flufl.flake8",

tests/fixtures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
import shutil
77
import sys
88
import textwrap
9+
from importlib import resources
910

1011
from . import _path
1112
from ._path import FilesSpec
1213
from .compat.py39 import os_helper
1314
from .compat.py312 import import_helper
1415

15-
if sys.version_info >= (3, 9):
16-
from importlib import resources
17-
else:
18-
import importlib_resources as resources
19-
2016

2117
@contextlib.contextmanager
2218
def tmp_path():

0 commit comments

Comments
 (0)