Skip to content

Commit

Permalink
Fix compatibility with Python v3.8 and v3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed Nov 15, 2024
1 parent 3ee7783 commit cbddc80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stac_check/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def parse_config(config_file: Optional[str] = None) -> Dict:
with open(default_config_file) as f:
default_config = yaml.load(f, Loader=yaml.FullLoader)
else:
with importlib.resources.open_text(__name__, "stac-check.config.yml") as f:
with importlib.resources.open_text(
"stac_check", "stac-check.config.yml"
) as f:
default_config = yaml.load(f, Loader=yaml.FullLoader)
if config_file:
with open(config_file) as f:
Expand Down

0 comments on commit cbddc80

Please sign in to comment.