Not deprecating these for now, just not used internally.

This commit is contained in:
Julian Berman 2015-03-15 18:19:20 -04:00
parent fec4647280
commit b7aab95f43
No known key found for this signature in database
GPG Key ID: 3F8D9C8C011729F8
3 changed files with 15 additions and 11 deletions

View File

@ -1,5 +1,5 @@
# This file is automatically generated by setup.py.
__version__ = '2.3.0.post128'
__sha__ = 'g2fda689'
__revision__ = 'g2fda689'
__version__ = '2.3.0.post131'
__sha__ = 'gfec4647'
__revision__ = 'gfec4647'

View File

@ -237,11 +237,18 @@ class RefResolver(object):
expensive calls. Should support the `functools.lru_cache` interface.
:argument int cache_maxsize: number of items to store in the cache. Set
this to 0 to disable caching. Defaults to 1000.
"""
def __init__(
self, base_uri, referrer, store=(), cache_remote=True, handlers=(),
cache_func=lru_cache, cache_maxsize=1000,
self,
base_uri,
referrer,
store=(),
cache_remote=True,
handlers=(),
cache_func=lru_cache,
cache_maxsize=1000,
):
# This attribute is not used, it is for backwards compatibility
self.referrer = referrer
@ -282,7 +289,8 @@ class RefResolver(object):
raise RefResolutionError(
"Failed to pop the scope from an empty stack. "
"`pop_scope()` should only be called once for every "
"`push_scope()`")
"`push_scope()`",
)
@property
def resolution_scope(self):
@ -293,8 +301,6 @@ class RefResolver(object):
uri, _ = urldefrag(self.resolution_scope)
return uri
# Deprecated, this function is no longer used, but is preserved for
# backwards compatibility
@contextlib.contextmanager
def in_scope(self, scope):
self.push_scope(scope)
@ -303,8 +309,6 @@ class RefResolver(object):
finally:
self.pop_scope()
# Deprecated, this function is no longer used, but is preserved for
# backwards compatibility
@contextlib.contextmanager
def resolving(self, ref):
"""

View File

@ -1 +1 @@
v2.3.0-128-g2fda689
v2.3.0-131-gfec4647