From b7aab95f434bf5b386af1929f5bf5dbd7dbb4159 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Sun, 15 Mar 2015 18:19:20 -0400 Subject: [PATCH] Not deprecating these for now, just not used internally. --- jsonschema/_version.py | 6 +++--- jsonschema/validators.py | 18 +++++++++++------- version.txt | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/jsonschema/_version.py b/jsonschema/_version.py index 2525dd0..ae262cf 100644 --- a/jsonschema/_version.py +++ b/jsonschema/_version.py @@ -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' diff --git a/jsonschema/validators.py b/jsonschema/validators.py index f280be5..e6c5aa5 100644 --- a/jsonschema/validators.py +++ b/jsonschema/validators.py @@ -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): """ diff --git a/version.txt b/version.txt index 6baff11..1d29f07 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v2.3.0-128-g2fda689 \ No newline at end of file +v2.3.0-131-gfec4647 \ No newline at end of file