Unused helper function "shuffled()".
This commit is contained in:
parent
7e04bfea39
commit
265490bd74
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user