mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 18:43:38 +01:00
utils.collections: rename IdentityUnlessDict to IdentityFallbackDict
This commit is contained in:
parent
e782885e50
commit
3b4b9085ea
2 changed files with 3 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ import enum
|
|||
|
||||
from beets import logging
|
||||
from beets.util import displayable_path, syspath, as_string
|
||||
from beets.util.collections import IdentityUnlessDict
|
||||
from beets.util.collections import IdentityFallbackDict
|
||||
import six
|
||||
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ TYPES = {
|
|||
'aiff': 'AIFF',
|
||||
}
|
||||
|
||||
PREFERRED_IMAGE_EXTENSIONS = IdentityUnlessDict({'jpeg': 'jpg'})
|
||||
PREFERRED_IMAGE_EXTENSIONS = IdentityFallbackDict({'jpeg': 'jpg'})
|
||||
|
||||
|
||||
# Exceptions.
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
"""
|
||||
|
||||
|
||||
class IdentityUnlessDict(dict):
|
||||
class IdentityFallbackDict(dict):
|
||||
"""A dictionary which is "transparent" (maps keys to themselves) for all
|
||||
keys not in it.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue