From 81541bbacf843c816fdf12b742146d79c0666de8 Mon Sep 17 00:00:00 2001 From: Sumpfork Date: Tue, 18 Sep 2018 09:48:49 -0700 Subject: [PATCH] py3 fix for expansion dividers --- domdiv/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domdiv/main.py b/domdiv/main.py index e242a18..4eecf00 100644 --- a/domdiv/main.py +++ b/domdiv/main.py @@ -1118,7 +1118,7 @@ def filter_sort_cards(cards, options): 'count': 1, 'sort': "%03d%s" % (order, c.name.strip(),)} - for set_tag, set_values in Card.sets.iteritems(): + for set_tag, set_values in Card.sets.items(): exp = set_values["set_name"] if exp in cardnamesByExpansion: exp_name = exp @@ -1133,7 +1133,7 @@ def filter_sort_cards(cards, options): exp_name = set_values['short_name'] card_names = [] - for key, n in sorted(cardnamesByExpansion[exp].items(), key=lambda k, x: x['sort']): + for n in sorted(cardnamesByExpansion[exp].values(), key=lambda x: x['sort']): if not n['randomizer']: # Highlight cards without Randomizers n['name'] = '' + n['name'] + ''