don't need to special-case importlib.resources as we don't support python 3.8 and lower

This commit is contained in:
meejah 2024-12-04 23:57:36 -07:00
parent 4c9321eff1
commit dd38030b2a
2 changed files with 1 additions and 7 deletions

View File

@ -46,9 +46,6 @@ classifiers = [
"Topic :: System :: Archiving",
]
dependencies = [
# importlib.resources.files and friends are new in Python 3.9.
"importlib_resources; python_version < '3.9'",
"zfec >= 1.1.0",
# zope.interface >= 3.6.0 is required for Twisted >= 12.1.0.

View File

@ -5,10 +5,7 @@ from __future__ import annotations
from six import ensure_str
import sys
if sys.version_info[:2] >= (3, 9):
from importlib.resources import files as resource_files, as_file
else:
from importlib_resources import files as resource_files, as_file
from importlib.resources import files as resource_files, as_file
from contextlib import ExitStack
import weakref
from typing import Optional, Union, TypeVar, overload