Skip to content

Commit cace88e

Browse files
committed
Bump version to 1.11
1 parent e4fcdc9 commit cace88e

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

jsonpointer.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,22 @@
3636

3737
# Will be parsed by setup.py to determine package metadata
3838
__author__ = 'Stefan Kögl <[email protected]>'
39-
__version__ = '1.10'
39+
__version__ = '1.11'
4040
__website__ = 'https://github.com/stefankoegl/python-json-pointer'
4141
__license__ = 'Modified BSD License'
4242

4343

4444
try:
4545
from urllib import unquote
46-
from itertools import izip
4746
str = unicode
4847
except ImportError: # Python 3
4948
from urllib.parse import unquote
50-
izip = zip
5149

5250
try:
5351
from collections.abc import Mapping, Sequence
5452
except ImportError: # Python 3
5553
from collections import Mapping, Sequence
5654

57-
from itertools import tee
5855
import re
5956
import copy
6057

@@ -111,26 +108,6 @@ def resolve_pointer(doc, pointer, default=_nothing):
111108
return pointer.resolve(doc, default)
112109

113110

114-
def pairwise(iterable):
115-
""" Transforms a list to a list of tuples of adjacent items
116-
117-
s -> (s0,s1), (s1,s2), (s2, s3), ...
118-
119-
>>> list(pairwise([]))
120-
[]
121-
122-
>>> list(pairwise([1]))
123-
[]
124-
125-
>>> list(pairwise([1, 2, 3, 4]))
126-
[(1, 2), (2, 3), (3, 4)]
127-
"""
128-
a, b = tee(iterable)
129-
for _ in b:
130-
break
131-
return izip(a, b)
132-
133-
134111
class JsonPointerException(Exception):
135112
pass
136113

0 commit comments

Comments
 (0)