mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Duplicates: fix error caused by formatting
Function arguement `format` was shadowing the built-in format function Fix #1300
This commit is contained in:
parent
1341ad9b1d
commit
50dbd18493
1 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ PLUGIN = 'duplicates'
|
|||
|
||||
|
||||
def _process_item(item, lib, copy=False, move=False, delete=False,
|
||||
tag=False, format=''):
|
||||
tag=False, fmt=''):
|
||||
"""Process Item `item` in `lib`.
|
||||
"""
|
||||
if copy:
|
||||
|
|
@ -45,7 +45,7 @@ def _process_item(item, lib, copy=False, move=False, delete=False,
|
|||
raise UserError('%s: can\'t parse k=v tag: %s' % (PLUGIN, tag))
|
||||
setattr(k, v)
|
||||
item.store()
|
||||
print_(format(item, format))
|
||||
print_(format(item, fmt))
|
||||
|
||||
|
||||
def _checksum(item, prog, log):
|
||||
|
|
@ -229,7 +229,7 @@ class DuplicatesPlugin(BeetsPlugin):
|
|||
move=move,
|
||||
delete=delete,
|
||||
tag=tag,
|
||||
format=fmt.format(obj_count))
|
||||
fmt=fmt.format(obj_count))
|
||||
|
||||
self._command.func = _dup
|
||||
return [self._command]
|
||||
|
|
|
|||
Loading…
Reference in a new issue