mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 21:17:54 +00:00
don't need to special-case importlib.resources as we don't support python 3.8 and lower
This commit is contained in:
parent
4c9321eff1
commit
dd38030b2a
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user