Skip to content

Commit

Permalink
Privated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Dec 19, 2021
1 parent 359b33d commit afb0b73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonschema/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def _find_in_referrer(self, key):

@lru_cache()
def _get_subschemas_cache(self):
cache = {key: [] for key in SUBSCHEMAS_KEYWORDS}
cache = {key: [] for key in _SUBSCHEMAS_KEYWORDS}
for keyword, subschema in _search_schema(
self.referrer, _match_subschema_keywords,
):
Expand Down Expand Up @@ -918,7 +918,7 @@ def resolve_remote(self, uri):
return result


SUBSCHEMAS_KEYWORDS = ("$id", "id", "$anchor", "$dynamicAnchor")
_SUBSCHEMAS_KEYWORDS = ("$id", "id", "$anchor", "$dynamicAnchor")


def _match_keyword(keyword):
Expand All @@ -931,7 +931,7 @@ def matcher(value):


def _match_subschema_keywords(value):
for keyword in SUBSCHEMAS_KEYWORDS:
for keyword in _SUBSCHEMAS_KEYWORDS:
if keyword in value:
yield keyword, value

Expand Down

0 comments on commit afb0b73

Please sign in to comment.