Skip to content

Commit 72c7c60

Browse files
committed
Variables orig_tags and new_tags aren't needed, drop keys() as it's the default for dicts
1 parent 14db96d commit 72c7c60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

picard/ui/metadatabox.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,6 @@ def _update_tags(self, new_selection=True, drop_album_caches=False):
592592

593593
config = get_config()
594594
tag_diff = TagDiff(max_length_diff=config.setting['ignore_track_duration_difference_under'])
595-
orig_tags = tag_diff.orig
596-
new_tags = tag_diff.new
597595
tag_diff.objects = len(files)
598596

599597
clear_existing_tags = config.setting['clear_existing_tags']
@@ -639,7 +637,7 @@ def _update_tags(self, new_selection=True, drop_album_caches=False):
639637

640638
tag_diff.objects += 1
641639

642-
all_tags = set(list(orig_tags.keys()) + list(new_tags.keys()))
640+
all_tags = set(list(tag_diff.orig) + list(tag_diff.new))
643641
common_tags = [tag for tag in top_tags if tag in all_tags]
644642
tag_names = common_tags + sorted(all_tags.difference(common_tags),
645643
key=lambda x: display_tag_name(x).lower())

0 commit comments

Comments
 (0)