Skip to content

Commit a5ec1c4

Browse files
committed
Dead code.
1 parent 702d3ac commit a5ec1c4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

jsonschema.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,23 +1191,6 @@ def _list(thing):
11911191
return thing
11921192

11931193

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-
12111194
def _unbool(element, true=object(), false=object()):
12121195
"""
12131196
A hack to make True and 1 and False and 0 unique for _uniq.

0 commit comments

Comments
 (0)