From 3180dfeda0858d326fcb2968ef2434f122c48840 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Tue, 6 Feb 2018 13:45:34 +0100 Subject: [PATCH] move import to the top --- taiga/projects/notifications/squashing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/taiga/projects/notifications/squashing.py b/taiga/projects/notifications/squashing.py index b3a9437b..bd7ca66f 100644 --- a/taiga/projects/notifications/squashing.py +++ b/taiga/projects/notifications/squashing.py @@ -1,4 +1,4 @@ -from collections import namedtuple +from collections import namedtuple, OrderedDict HistoryEntry = namedtuple('HistoryEntry', 'comment values_diff') @@ -61,7 +61,6 @@ def squash_history_entries(history_entries): a squashable algorithm available. """ history_entries = (HistoryEntry(entry.comment, entry.values_diff) for entry in history_entries) - from collections import OrderedDict grouped = OrderedDict() for entry in history_entries: if entry.comment: