Skip to content

Commit 0497cca

Browse files
committed
Fix importlib.resources constraints
The python version was not being constrained correctly, leading to using the python > 3.8 imports for python 3.8
1 parent 6f0cb1d commit 0497cca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mache/machine_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from lxml import etree
88

9-
if TYPE_CHECKING or sys.version_info > (3, 8, 0):
9+
if TYPE_CHECKING or sys.version_info >= (3, 9, 0):
1010
from importlib import resources as importlib_resources
1111
else:
1212
# python <= 3.8

mache/spack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from jinja2 import Template
77

8-
if TYPE_CHECKING or sys.version_info > (3, 8, 0):
8+
if TYPE_CHECKING or sys.version_info >= (3, 9, 0):
99
from importlib import resources as importlib_resources
1010
else:
1111
# python <= 3.8

0 commit comments

Comments
 (0)