mirror of
https://github.com/beetbox/beets.git
synced 2026-02-02 05:21:45 +01:00
Rename variables
This commit is contained in:
parent
7b5d818603
commit
9680d8f3f5
1 changed files with 3 additions and 3 deletions
|
|
@ -34,9 +34,9 @@ class Substitute(BeetsPlugin):
|
|||
"""Do the actual replacing."""
|
||||
if text:
|
||||
for pattern, replacement in self.substitute_rules:
|
||||
new_string, number_of_subs_made = re.subn(pattern, replacement, text)
|
||||
if number_of_subs_made > 0:
|
||||
return new_string
|
||||
new_text, subs_made = re.subn(pattern, replacement, text)
|
||||
if subs_made > 0:
|
||||
return new_text
|
||||
return text
|
||||
else:
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue