mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 22:42:44 +01:00
Use indexed format with python26
This commit is contained in:
parent
863b9fb4af
commit
9474686d68
1 changed files with 2 additions and 2 deletions
|
|
@ -1278,10 +1278,10 @@ class MediaFile(object):
|
|||
"""
|
||||
if not isinstance(descriptor, MediaField):
|
||||
raise ValueError(
|
||||
u'{} must be an instance of MediaField'.format(descriptor))
|
||||
u'{0} must be an instance of MediaField'.format(descriptor))
|
||||
if name in cls.__dict__:
|
||||
raise ValueError(
|
||||
u'property "{}" already exists on MediaField'.format(name))
|
||||
u'property "{0}" already exists on MediaField'.format(name))
|
||||
setattr(cls, name, descriptor)
|
||||
|
||||
def update(self, dict, id3v23=False):
|
||||
|
|
|
|||
Loading…
Reference in a new issue