summaryrefslogtreecommitdiff
path: root/jsonschema/_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/_utils.py')
-rw-r--r--jsonschema/_utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py
index b14b70e..3f1a440 100644
--- a/jsonschema/_utils.py
+++ b/jsonschema/_utils.py
@@ -90,10 +90,7 @@ def extras_msg(extras):
Create an error message for extra items or properties.
"""
- if len(extras) == 1:
- verb = "was"
- else:
- verb = "were"
+ verb = "was" if len(extras) == 1 else "were"
return ", ".join(repr(extra) for extra in sorted(extras)), verb