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): ...@@ -135,8 +135,8 @@ class Sorter(object):
oldresult = result oldresult = result
result = OrderedDict() result = OrderedDict()
for oldkey, oldgroup in oldresult.items(): for oldkey, oldgroup in oldresult.items():
for key, group in groupby(oldgroup, function): for key, _group in groupby(oldgroup, function):
newgroup = list(group) newgroup = list(_group)
if not isinstance(key, list): if not isinstance(key, list):
key = [key] key = [key]
...@@ -150,8 +150,8 @@ class Sorter(object): ...@@ -150,8 +150,8 @@ class Sorter(object):
result[newkey] = newgroup result[newkey] = newgroup
# sort all groups # sort all groups
for key, group in result.items(): for key, _group in result.items():
result[key] = self.sort(group) result[key] = self.sort(_group)
return result 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