From 0710a0d7a14a80d9ac7cd486b03e6339f2bcbc11 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Wed, 8 Mar 2017 08:02:59 +0100 Subject: [PATCH] Rename file variable to obj I changed it in e9fa6c887f94306c1aee3f3eb90f9db05951cb97 so a track is passed to that function some times, so better reflect that in the variable name too. --- picard/album.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/picard/album.py b/picard/album.py index 5934dc85b..d7151f8e7 100644 --- a/picard/album.py +++ b/picard/album.py @@ -557,23 +557,23 @@ class Album(DataObject, Item): new_images = [] orig_images = [] - def process_file_images(file): - for image in file.metadata.images: + def process_images(obj): + for image in obj.metadata.images: if image not in new_images: new_images.append(image) try: - for image in file.orig_metadata.images: + for image in obj.orig_metadata.images: if image not in orig_images: orig_images.append(image) except AttributeError: pass for track in self.tracks: - process_file_images(track) + process_images(track) for file in list(track.linked_files): - process_file_images(file) + process_images(file) for file in list(self.unmatched_files.files): - process_file_images(file) + process_images(file) self.metadata.images = new_images self.orig_metadata.images = orig_images