Skip to content

Commit

Permalink
jsonschema: Fix importlib's open_text deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Sep 26, 2023
1 parent 75de0b8 commit d6adaba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flatpak_builder_lint/checks/jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

class JSONSchemaCheck(Check):
def check_manifest(self, manifest: dict) -> None:
with importlib.resources.open_text(
staticfiles, "flatpak-manifest.schema.json"
) as f:
with importlib.resources.files(staticfiles).joinpath(
"flatpak-manifest.schema.json"
).open() as f:
schema = json.load(f)

try:
Expand Down

0 comments on commit d6adaba

Please sign in to comment.