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:
Julian Berman 2015-03-15 18:12:08 -04:00
commit fec4647280
No known key found for this signature in database
GPG Key ID: 3F8D9C8C011729F8
1 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,11 @@ class RefResolver(object):
def resolution_scope(self):
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
# backwards compatibility
@contextlib.contextmanager