From a3717765deccb47caca44589bd4b238a1b3e661e Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 27 Mar 2020 13:57:32 -0400 Subject: We do want to use a list when sorting trailers Switching to using sets for all trailer management resulted in trailer order being non-deterministic for trailers with the same title. Switch back to using lists where it makes a difference. Reported-by: Martin K. Petersen Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'b4') diff --git a/b4/__init__.py b/b4/__init__.py index af8b23c..0f0b76c 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -817,8 +817,7 @@ class LoreMessage: # Now we add mix-in trailers btrailers.reverse() - trailers = set(self.followup_trailers) - trailers.update(set(btrailers)) + trailers = btrailers + list(self.followup_trailers) added = list() if trailer_order is None: trailer_order = DEFAULT_TRAILER_ORDER -- cgit v1.2.3