Commit 0de3e0a9 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Rename variable so that it doesn't clash with method name

parent 1c11a56f
......@@ -135,8 +135,8 @@ class Sorter(object):
oldresult = result
result = OrderedDict()
for oldkey, oldgroup in oldresult.items():
for key, group in groupby(oldgroup, function):
newgroup = list(group)
for key, _group in groupby(oldgroup, function):
newgroup = list(_group)
if not isinstance(key, list):
key = [key]
......@@ -150,8 +150,8 @@ class Sorter(object):
result[newkey] = newgroup
# sort all groups
for key, group in result.items():
result[key] = self.sort(group)
for key, _group in result.items():
result[key] = self.sort(_group)
return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment