Not deprecating these for now, just not used internally.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# This file is automatically generated by setup.py.
|
# This file is automatically generated by setup.py.
|
||||||
__version__ = '2.3.0.post128'
|
__version__ = '2.3.0.post131'
|
||||||
__sha__ = 'g2fda689'
|
__sha__ = 'gfec4647'
|
||||||
__revision__ = 'g2fda689'
|
__revision__ = 'gfec4647'
|
||||||
|
|||||||
@@ -237,11 +237,18 @@ class RefResolver(object):
|
|||||||
expensive calls. Should support the `functools.lru_cache` interface.
|
expensive calls. Should support the `functools.lru_cache` interface.
|
||||||
:argument int cache_maxsize: number of items to store in the cache. Set
|
:argument int cache_maxsize: number of items to store in the cache. Set
|
||||||
this to 0 to disable caching. Defaults to 1000.
|
this to 0 to disable caching. Defaults to 1000.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, base_uri, referrer, store=(), cache_remote=True, handlers=(),
|
self,
|
||||||
cache_func=lru_cache, cache_maxsize=1000,
|
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
|
# This attribute is not used, it is for backwards compatibility
|
||||||
self.referrer = referrer
|
self.referrer = referrer
|
||||||
@@ -282,7 +289,8 @@ class RefResolver(object):
|
|||||||
raise RefResolutionError(
|
raise RefResolutionError(
|
||||||
"Failed to pop the scope from an empty stack. "
|
"Failed to pop the scope from an empty stack. "
|
||||||
"`pop_scope()` should only be called once for every "
|
"`pop_scope()` should only be called once for every "
|
||||||
"`push_scope()`")
|
"`push_scope()`",
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def resolution_scope(self):
|
def resolution_scope(self):
|
||||||
@@ -293,8 +301,6 @@ class RefResolver(object):
|
|||||||
uri, _ = urldefrag(self.resolution_scope)
|
uri, _ = urldefrag(self.resolution_scope)
|
||||||
return uri
|
return uri
|
||||||
|
|
||||||
# Deprecated, this function is no longer used, but is preserved for
|
|
||||||
# backwards compatibility
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def in_scope(self, scope):
|
def in_scope(self, scope):
|
||||||
self.push_scope(scope)
|
self.push_scope(scope)
|
||||||
@@ -303,8 +309,6 @@ class RefResolver(object):
|
|||||||
finally:
|
finally:
|
||||||
self.pop_scope()
|
self.pop_scope()
|
||||||
|
|
||||||
# Deprecated, this function is no longer used, but is preserved for
|
|
||||||
# backwards compatibility
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def resolving(self, ref):
|
def resolving(self, ref):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v2.3.0-128-g2fda689
|
v2.3.0-131-gfec4647
|
||||||
Reference in New Issue
Block a user