Skip to content

Commit

Permalink
Fix read of "profiles" resource for Python 3.9
Browse files Browse the repository at this point in the history
The previous 'if' check was wrong, per tests run in CI.
  • Loading branch information
dlax committed Oct 8, 2024
1 parent a73af9f commit d767856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgactivity/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
else:
from typing import Callable, Dict, Iterable, Iterator, Mapping, MutableSet, Sequence

if sys.version_info >= (3, 11):
if sys.version_info >= (3, 9):

def read_resource(pkgname: str, dirname: str, *args: str) -> str | None:
resource = importlib.resources.files(pkgname).joinpath(dirname)
Expand Down

0 comments on commit d767856

Please sign in to comment.