make lines a list before using list operations on it
This commit is contained in:
@@ -14,6 +14,8 @@ def printable_dict(d, header=None, sorter=sorted_naturally):
|
||||
if sorter:
|
||||
lines = sorter(lines)
|
||||
|
||||
lines = list(lines)
|
||||
|
||||
if header:
|
||||
header = format_header(header)
|
||||
lines = [header] + lines
|
||||
|
||||
Reference in New Issue
Block a user