mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 14:26:10 -06:00
utils.collections: rename IdentityUnlessDict to IdentityFallbackDict
This commit is contained in:
committed by
nathdwek@laptop
parent
e782885e50
commit
3b4b9085ea
+2
-2
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user