summaryrefslogtreecommitdiff
path: root/progs/a52.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a52.py')
-rw-r--r--progs/a52.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/progs/a52.py b/progs/a52.py
index 1d116bc..131af01 100644
--- a/progs/a52.py
+++ b/progs/a52.py
@@ -1,8 +1,8 @@
-# FIXME: multiple variable assignment in for loop
-#
-# from collections import defaultdict
-# def grouping_dictionary(l):
-# d = defaultdict(list)
-# for k, v in l:
-# d[k].append(v)
-# return d \ No newline at end of file
+from collections import defaultdict
+
+
+def grouping_dictionary(l):
+ d = defaultdict(list)
+ for k, v in l:
+ d[k].append(v)
+ return d