Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot committed Aug 26, 2021
1 parent 7776f0a commit 8dc40bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registry_schemas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _load_json_schema(filename: str):
relative_path = path.join('schemas', filename)
absolute_path = path.join(path.dirname(__file__), relative_path)

with open(absolute_path, 'r') as schema_file:
with open(absolute_path, 'r') as schema_file: # pylint: disable=unspecified-encoding
schema = json.loads(schema_file.read())

return schema
Expand All @@ -54,7 +54,7 @@ def get_schema_store(validate_schema: bool = False, schema_search_path: str = No
for fname in fnames:
fpath = path.join(schema_search_path, fname)
if fpath[-5:] == '.json':
with open(fpath, 'r') as schema_fd:
with open(fpath, 'r') as schema_fd: # pylint: disable=unspecified-encoding
schema = json.load(schema_fd)
if '$id' in schema:
schemastore[schema['$id']] = schema
Expand Down

0 comments on commit 8dc40bd

Please sign in to comment.