Skip to content

Commit b7aab95

Browse files
committed
Not deprecating these for now, just not used internally.
1 parent fec4647 commit b7aab95

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

jsonschema/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
# This file is automatically generated by setup.py.
3-
__version__ = '2.3.0.post128'
4-
__sha__ = 'g2fda689'
5-
__revision__ = 'g2fda689'
3+
__version__ = '2.3.0.post131'
4+
__sha__ = 'gfec4647'
5+
__revision__ = 'gfec4647'

jsonschema/validators.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,18 @@ class RefResolver(object):
237237
expensive calls. Should support the `functools.lru_cache` interface.
238238
:argument int cache_maxsize: number of items to store in the cache. Set
239239
this to 0 to disable caching. Defaults to 1000.
240+
240241
"""
241242

242243
def __init__(
243-
self, base_uri, referrer, store=(), cache_remote=True, handlers=(),
244-
cache_func=lru_cache, cache_maxsize=1000,
244+
self,
245+
base_uri,
246+
referrer,
247+
store=(),
248+
cache_remote=True,
249+
handlers=(),
250+
cache_func=lru_cache,
251+
cache_maxsize=1000,
245252
):
246253
# This attribute is not used, it is for backwards compatibility
247254
self.referrer = referrer
@@ -282,7 +289,8 @@ def pop_scope(self):
282289
raise RefResolutionError(
283290
"Failed to pop the scope from an empty stack. "
284291
"`pop_scope()` should only be called once for every "
285-
"`push_scope()`")
292+
"`push_scope()`",
293+
)
286294

287295
@property
288296
def resolution_scope(self):
@@ -293,8 +301,6 @@ def base_uri(self):
293301
uri, _ = urldefrag(self.resolution_scope)
294302
return uri
295303

296-
# Deprecated, this function is no longer used, but is preserved for
297-
# backwards compatibility
298304
@contextlib.contextmanager
299305
def in_scope(self, scope):
300306
self.push_scope(scope)
@@ -303,8 +309,6 @@ def in_scope(self, scope):
303309
finally:
304310
self.pop_scope()
305311

306-
# Deprecated, this function is no longer used, but is preserved for
307-
# backwards compatibility
308312
@contextlib.contextmanager
309313
def resolving(self, ref):
310314
"""

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.3.0-128-g2fda689
1+
v2.3.0-131-gfec4647

0 commit comments

Comments
 (0)