summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-07-09 18:08:06 +0200
committerJulian Berman <Julian@GrayVines.com>2021-07-09 18:08:06 +0200
commita72044e55fd327c40c560aca7784441e8a4fc5c5 (patch)
treeb970c5ad83cc40958a856cee196339a82738595f
parent7b9b5c37257f6624ccb20860f1329e9eb86d83dd (diff)
downloadjsonschema-a72044e55fd327c40c560aca7784441e8a4fc5c5.tar.gz
Minor rewording of the docstring.
-rw-r--r--jsonschema/_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py
index c6e9805..97b7f8f 100644
--- a/jsonschema/_utils.py
+++ b/jsonschema/_utils.py
@@ -211,8 +211,8 @@ def uniq(container):
"""
Check if all of a container's elements are unique.
- Successively tries first to rely that the elements are being sortable
- and finally falls back on brute force.
+ Tries to rely on the container being recursively sortable, or otherwise
+ falls back on (slow) brute force.
"""
try:
sort = sorted(unbool(i) for i in container)