Wrong docstring.

This commit is contained in:
Julian Berman 2015-03-15 13:45:38 -04:00
parent 2c59b7192e
commit 2fda689941
No known key found for this signature in database
GPG Key ID: 3F8D9C8C011729F8
1 changed files with 8 additions and 8 deletions

View File

@ -288,7 +288,6 @@ class RefResolver(object):
def resolution_scope(self):
return self._scopes_stack[-1]
# Deprecated, this function is no longer used, but is preserved for
# backwards compatibility
@contextlib.contextmanager
@ -303,6 +302,14 @@ class RefResolver(object):
# backwards compatibility
@contextlib.contextmanager
def resolving(self, ref):
"""
Context manager which resolves a JSON ``ref`` and enters the
resolution scope of this ref.
:argument str ref: reference to resolve
"""
url, resolved = self.resolve(ref)
self.push_scope(url)
try:
@ -311,13 +318,6 @@ class RefResolver(object):
self.pop_scope()
def resolve(self, ref):
"""
Context manager which resolves a JSON ``ref`` and enters the
resolution scope of this ref.
:argument str ref: reference to resolve
"""
url = self._urljoin_cache(self.resolution_scope, ref)
return url, self._resolve_cache(url)