Merge remote-tracking branch 'dnephin/perf_cache_resolving' into perf_cache_resolving
* dnephin/perf_cache_resolving: Fix base_uri backwards compatibility.
This commit is contained in:
@@ -288,6 +288,11 @@ class RefResolver(object):
|
|||||||
def resolution_scope(self):
|
def resolution_scope(self):
|
||||||
return self._scopes_stack[-1]
|
return self._scopes_stack[-1]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def base_uri(self):
|
||||||
|
uri, _ = urldefrag(self.resolution_scope)
|
||||||
|
return uri
|
||||||
|
|
||||||
# Deprecated, this function is no longer used, but is preserved for
|
# Deprecated, this function is no longer used, but is preserved for
|
||||||
# backwards compatibility
|
# backwards compatibility
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
|||||||
Reference in New Issue
Block a user