From e908b8055596329f0b4ba1bc0dc1c793b437299f Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Wed, 4 Aug 2021 10:29:44 +0100 Subject: Fix missing trailing commas. Add flake8-commas to ensure this stays the case. --- jsonschema/validators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jsonschema/validators.py') 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 -- cgit v1.2.1