mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 16:44:06 +00:00
File#move_additional_files: Use .strip as a method, instead of mapping str.strip. (#2403)
This commit is contained in:
@@ -114,7 +114,7 @@ class File(LockableObject, Item):
|
||||
old_path = encode_filename(os.path.dirname(old_filename))
|
||||
new_path = encode_filename(os.path.dirname(self.filename))
|
||||
patterns = encode_filename(self.config.setting["move_additional_files_pattern"])
|
||||
patterns = filter(bool, map(str.strip, patterns.split()))
|
||||
patterns = filter(bool, [p.split() for p in patterns.split()])
|
||||
files = []
|
||||
for pattern in patterns:
|
||||
pattern = os.path.join(old_path, pattern)
|
||||
|
||||
Reference in New Issue
Block a user