jsonpointer 3.9__py3-none-any.whl → 3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jsonpointer-3.9.dist-info → jsonpointer-3.10.dist-info}/METADATA +1 -1
- jsonpointer-3.10.dist-info/RECORD +9 -0
- jsonpointer.py +7 -1
- jsonpointer-3.9.dist-info/RECORD +0 -9
- {jsonpointer-3.9.data → jsonpointer-3.10.data}/scripts/jsonpointer +0 -0
- {jsonpointer-3.9.dist-info → jsonpointer-3.10.dist-info}/WHEEL +0 -0
- {jsonpointer-3.9.dist-info → jsonpointer-3.10.dist-info}/licenses/AUTHORS +0 -0
- {jsonpointer-3.9.dist-info → jsonpointer-3.10.dist-info}/licenses/LICENSE.txt +0 -0
- {jsonpointer-3.9.dist-info → jsonpointer-3.10.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
jsonpointer.py,sha256=xoJ4lmbQby_xAse2zBP2BQMKdPtPxZFy0df2TMEMiOM,14867
|
|
2
|
+
jsonpointer-3.10.data/scripts/jsonpointer,sha256=XYDDaXnhkb3nANXqdn9OUKtVwSqsOZ8TDgXeawe_O7Y,4102
|
|
3
|
+
jsonpointer-3.10.dist-info/licenses/AUTHORS,sha256=TVgxnQ9ZyHvvWwez_k2w8ZwtfVVFsDTGv3tXyJu-9X8,113
|
|
4
|
+
jsonpointer-3.10.dist-info/licenses/LICENSE.txt,sha256=2LJPFdRyiF94ii1umFhQ8mRie4YBKhe7JCyD8xDZB-U,1413
|
|
5
|
+
jsonpointer-stubs/__init__.pyi,sha256=gHlnw0_btYmRw5m0UutGmAjNdvzS_E_yumlvm8rMX48,1920
|
|
6
|
+
jsonpointer-3.10.dist-info/METADATA,sha256=6cyh4D1qGDoLNVNfllzDLn2h6c41w7D8Fpc3GhbRFic,2667
|
|
7
|
+
jsonpointer-3.10.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
8
|
+
jsonpointer-3.10.dist-info/top_level.txt,sha256=qkC_MNB0W-Hw6fCuc2X4V_xpd0WzjwHRObTmphI1SkM,30
|
|
9
|
+
jsonpointer-3.10.dist-info/RECORD,,
|
jsonpointer.py
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
# Will be parsed by setup.py to determine package metadata
|
|
34
34
|
__author__ = 'Stefan Kögl <stefan@skoegl.net>'
|
|
35
|
-
__version__ = '3.
|
|
35
|
+
__version__ = '3.10'
|
|
36
36
|
__website__ = 'https://github.com/stefankoegl/python-json-pointer'
|
|
37
37
|
__license__ = 'Modified BSD License'
|
|
38
38
|
|
|
@@ -341,6 +341,12 @@ class JsonPointer:
|
|
|
341
341
|
|
|
342
342
|
# Else the object is a mapping or supports __getitem__(so assume custom indexing)
|
|
343
343
|
try:
|
|
344
|
+
# Check membership first so that mappings with a fallback for
|
|
345
|
+
# missing keys (e.g. defaultdict.__missing__) are not mutated and
|
|
346
|
+
# absent members are reported as missing.
|
|
347
|
+
if isinstance(doc, Mapping) and part not in doc:
|
|
348
|
+
raise KeyError(part)
|
|
349
|
+
|
|
344
350
|
return doc[part]
|
|
345
351
|
|
|
346
352
|
except KeyError:
|
jsonpointer-3.9.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
jsonpointer.py,sha256=SMdpngkGz28E7DZDVru0OPRNehQI_1PB_WhIVC59XNQ,14561
|
|
2
|
-
jsonpointer-3.9.data/scripts/jsonpointer,sha256=XYDDaXnhkb3nANXqdn9OUKtVwSqsOZ8TDgXeawe_O7Y,4102
|
|
3
|
-
jsonpointer-3.9.dist-info/licenses/AUTHORS,sha256=TVgxnQ9ZyHvvWwez_k2w8ZwtfVVFsDTGv3tXyJu-9X8,113
|
|
4
|
-
jsonpointer-3.9.dist-info/licenses/LICENSE.txt,sha256=2LJPFdRyiF94ii1umFhQ8mRie4YBKhe7JCyD8xDZB-U,1413
|
|
5
|
-
jsonpointer-stubs/__init__.pyi,sha256=gHlnw0_btYmRw5m0UutGmAjNdvzS_E_yumlvm8rMX48,1920
|
|
6
|
-
jsonpointer-3.9.dist-info/METADATA,sha256=OXLqFxxk0a_pssU1BVff3yFHew-XbtK8nbrwc_Rs--o,2666
|
|
7
|
-
jsonpointer-3.9.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
8
|
-
jsonpointer-3.9.dist-info/top_level.txt,sha256=qkC_MNB0W-Hw6fCuc2X4V_xpd0WzjwHRObTmphI1SkM,30
|
|
9
|
-
jsonpointer-3.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|