summaryrefslogtreecommitdiff
path: root/jsonschema/validators.py
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-08-04 10:29:44 +0100
committerJulian Berman <Julian@GrayVines.com>2021-08-04 10:29:44 +0100
commite908b8055596329f0b4ba1bc0dc1c793b437299f (patch)
treecb2bb0a41b6b8b8b26715e17bcdc944a676e29a1 /jsonschema/validators.py
parent39697cda809169cf7031839bb0174b5d8136029e (diff)
downloadjsonschema-draft2020-12.tar.gz
Fix missing trailing commas.draft2020-12
Add flake8-commas to ensure this stays the case.
Diffstat (limited to 'jsonschema/validators.py')
-rw-r--r--jsonschema/validators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonschema/validators.py b/jsonschema/validators.py
index 7a07415..9e6bf1e 100644
--- a/jsonschema/validators.py
+++ b/jsonschema/validators.py
@@ -615,7 +615,7 @@ class RefResolver(object):
raise exceptions.RefResolutionError(
"Failed to pop the scope from an empty stack. "
"`pop_scope()` should only be called once for every "
- "`push_scope()`"
+ "`push_scope()`",
)
@property
@@ -692,7 +692,7 @@ class RefResolver(object):
for subschema in self._finditem(schema, "$id"):
target_uri = self._urljoin_cache(
- self.resolution_scope, subschema['$id']
+ self.resolution_scope, subschema['$id'],
)
if target_uri.rstrip("/") == uri.rstrip("/"):
if fragment:
@@ -764,7 +764,7 @@ class RefResolver(object):
document = document[part]
except (TypeError, LookupError):
raise exceptions.RefResolutionError(
- "Unresolvable JSON pointer: %r" % fragment
+ "Unresolvable JSON pointer: %r" % fragment,
)
return document