Unused helper function "shuffled()".

This commit is contained in:
A. Jesse Jiryu Davis 2014-09-25 11:53:43 -04:00
parent 7e04bfea39
commit 265490bd74

View File

@ -225,12 +225,3 @@ def _fields_list_to_dict(fields):
"each an instance of %s" % (string_type.__name__,))
as_dict[field] = 1
return as_dict
def shuffled(sequence):
"""Returns a copy of the sequence (as a :class:`list`) which has been
shuffled by :func:`random.shuffle`.
"""
out = list(sequence)
random.shuffle(out)
return out