move import to the top

remotes/origin/release/3.1.1
Miguel Gonzalez 2018-02-06 13:45:34 +01:00
parent 1a3b6bc3ca
commit 3180dfeda0
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from collections import namedtuple from collections import namedtuple, OrderedDict
HistoryEntry = namedtuple('HistoryEntry', 'comment values_diff') HistoryEntry = namedtuple('HistoryEntry', 'comment values_diff')
@ -61,7 +61,6 @@ def squash_history_entries(history_entries):
a squashable algorithm available. a squashable algorithm available.
""" """
history_entries = (HistoryEntry(entry.comment, entry.values_diff) for entry in history_entries) history_entries = (HistoryEntry(entry.comment, entry.values_diff) for entry in history_entries)
from collections import OrderedDict
grouped = OrderedDict() grouped = OrderedDict()
for entry in history_entries: for entry in history_entries:
if entry.comment: if entry.comment: