Skip to content

Commit

Permalink
use importlib_resources for <= 3.9, not only <= 3.8, OCR-D/ocrd_froc#10
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Apr 16, 2024
1 parent 9875d20 commit 66db489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ frozendict>=2.3.4
gdown
httpx>=0.22.0
importlib_metadata ; python_version < '3.8'
importlib_resources ; python_version < '3.9'
importlib_resources ; python_version < '3.10'
jsonschema
lxml
memory-profiler >= 0.58.0
Expand Down
2 changes: 1 addition & 1 deletion src/ocrd_utils/introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# cannot use importlib.resources until we move to 3.9+ forimportlib.resources.files
import sys
if sys.version_info < (3, 9):
if sys.version_info < (3, 10):
import importlib_resources
else:
import importlib.resources as importlib_resources
Expand Down

0 comments on commit 66db489

Please sign in to comment.