Skip to content

Commit fec4647

Browse files
committed
Merge remote-tracking branch 'dnephin/perf_cache_resolving' into perf_cache_resolving
* dnephin/perf_cache_resolving: Fix base_uri backwards compatibility.
2 parents 10ea4fa + 7241db0 commit fec4647

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jsonschema/validators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ def pop_scope(self):
288288
def resolution_scope(self):
289289
return self._scopes_stack[-1]
290290

291+
@property
292+
def base_uri(self):
293+
uri, _ = urldefrag(self.resolution_scope)
294+
return uri
295+
291296
# Deprecated, this function is no longer used, but is preserved for
292297
# backwards compatibility
293298
@contextlib.contextmanager

0 commit comments

Comments
 (0)