mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
Python 3 compatible formatting in unique_path
This commit is contained in:
parent
386f582364
commit
cec632f359
1 changed files with 2 additions and 1 deletions
|
|
@ -496,7 +496,8 @@ def unique_path(path):
|
|||
num = 0
|
||||
while True:
|
||||
num += 1
|
||||
new_path = b'%s.%i%s' % (base, num, ext)
|
||||
suffix = u'.{}'.format(num).encode() + ext
|
||||
new_path = base + suffix
|
||||
if not os.path.exists(new_path):
|
||||
return new_path
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue