utils.collections: rename IdentityUnlessDict to IdentityFallbackDict

This commit is contained in:
nath@home
2016-11-08 18:48:44 +01:00
committed by nathdwek@laptop
parent e782885e50
commit 3b4b9085ea
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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.
"""