Not deprecating these for now, just not used internally.
This commit is contained in:
parent
fec4647280
commit
b7aab95f43
|
@ -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'
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -1 +1 @@
|
|||
v2.3.0-128-g2fda689
|
||||
v2.3.0-131-gfec4647
|
Loading…
Reference in New Issue