Skip to content

Commit

Permalink
remove conditional import of importlib-resources
Browse files Browse the repository at this point in the history
- not needed after python 3.8
  • Loading branch information
zcutlip committed Apr 16, 2024
1 parent 3bc612e commit 320d26c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyonepassword/pkg_resources.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# importlib.resources.files introduced in python 3.9
from importlib.resources import files as pkgfiles # noqa: F401
from pathlib import Path

try:
from importlib.resources import files as pkgfiles # noqa: F401
except ImportError: # pragma: no coverage
from importlib_resources import files as pkgfiles # noqa: F401


def data_location_as_path(package, sub_path) -> Path:
"""
Expand Down

0 comments on commit 320d26c

Please sign in to comment.