Skip to content

Commit

Permalink
Fixed LoadingOptions class
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey committed Feb 11, 2023
1 parent 9c2ec1f commit 4a55cbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions schema_salad/metaschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ def __init__(
self.vocab = _vocab
self.rvocab = _rvocab

if namespaces is not None:
if self.namespaces is not None:
self.vocab = self.vocab.copy()
self.rvocab = self.rvocab.copy()
for k, v in namespaces.items():
for k, v in self.namespaces.items():
self.vocab[k] = v
self.rvocab[v] = k

Expand Down
4 changes: 2 additions & 2 deletions schema_salad/python_codegen_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def __init__(
self.vocab = _vocab
self.rvocab = _rvocab

if namespaces is not None:
if self.namespaces is not None:
self.vocab = self.vocab.copy()
self.rvocab = self.rvocab.copy()
for k, v in namespaces.items():
for k, v in self.namespaces.items():
self.vocab[k] = v
self.rvocab[v] = k

Expand Down

0 comments on commit 4a55cbf

Please sign in to comment.