utils.collections: rename IdentityUnlessDict to IdentityFallbackDict

This commit is contained in:
nath@home 2016-11-08 12:10:17 +01:00 committed by nathdwek@laptop
parent e782885e50
commit 3b4b9085ea
2 changed files with 3 additions and 3 deletions

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.

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.
"""