Skip to content

Commit e2784d4

Browse files
committed
Use importlib_resources on Python 3.7 and 3.8
1 parent c313d01 commit e2784d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

domdf_python_tools/compat/importlib_resources.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
from typing import Any, BinaryIO, TextIO
77

8-
if sys.version_info[:2] < (3, 7): # pragma: no cover (py37+)
8+
if sys.version_info[:2] < (3, 9): # pragma: no cover (py37+)
99
# 3rd party
1010
import importlib_resources
1111

@@ -16,7 +16,7 @@
1616
import importlib.resources
1717
globals().update(importlib.resources.__dict__)
1818

19-
if not ((3, 7) <= sys.version_info < (3, 11)): # pragma: no cover (py37 OR py38 OR py39 OR py310):
19+
if not ((3, 9) <= sys.version_info < (3, 11)): # pragma: no cover (py39 OR py310):
2020

2121
def _normalize_path(path: Any) -> str:
2222
"""

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
importlib-metadata>=3.6.0; python_version < "3.9"
2-
importlib-resources>=3.0.0; python_version < "3.7"
2+
importlib-resources>=3.0.0; python_version < "3.9"
33
natsort>=7.0.1
44
typing-extensions>=3.7.4.1

0 commit comments

Comments
 (0)