We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702d3ac commit a5ec1c4Copy full SHA for a5ec1c4
jsonschema.py
@@ -1191,23 +1191,6 @@ def _list(thing):
1191
return thing
1192
1193
1194
-def _delist(thing):
1195
- """
1196
- Unwrap ``thing`` to a single element if its a single str in a list.
1197
-
1198
- Otherwise, return it unchanged.
1199
1200
1201
1202
- if (
1203
- isinstance(thing, list) and
1204
- len(thing) == 1
1205
- and isinstance(thing[0], basestring)
1206
- ):
1207
- return thing[0]
1208
- return thing
1209
1210
1211
def _unbool(element, true=object(), false=object()):
1212
"""
1213
A hack to make True and 1 and False and 0 unique for _uniq.
0 commit comments