Skip to content

Commit

Permalink
Not deprecating these for now, just not used internally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Mar 15, 2015
1 parent fec4647 commit b7aab95
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions 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'
18 changes: 11 additions & 7 deletions jsonschema/validators.py
Expand Up @@ -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
Expand Down Expand Up @@ -282,7 +289,8 @@ def pop_scope(self):
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):
Expand All @@ -293,8 +301,6 @@ def base_uri(self):
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)
Expand All @@ -303,8 +309,6 @@ def in_scope(self, scope):
finally:
self.pop_scope()

# Deprecated, this function is no longer used, but is preserved for
# backwards compatibility
@contextlib.contextmanager
def resolving(self, ref):
"""
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
v2.3.0-128-g2fda689
v2.3.0-131-gfec4647

0 comments on commit b7aab95

Please sign in to comment.