Skip to content

Commit d80576f

Browse files
committed
get rid of dictionary comprehensions
for Python 2.6 compatibility
1 parent 247e3b9 commit d80576f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

beets/library.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,9 @@ def __iter__(self):
955955
(row['id'],)
956956
)
957957
values = dict(row)
958-
values.update({row['key']: row['value'] for row in flex_rows})
958+
values.update(
959+
dict((row['key'], row['value']) for row in flex_rows)
960+
)
959961

960962
# Construct the Python object and yield it if it passes the
961963
# predicate.

beetsplug/mbsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def mbsync_albums(lib, query, move, pretend, write):
9393
continue
9494

9595
items = list(a.items())
96-
old_data = {item: dict(item) for item in items}
96+
old_data = dict((item, dict(item)) for item in items)
9797

9898
# Get the MusicBrainz album information.
9999
album_info = hooks.album_for_mbid(a.mb_albumid)

0 commit comments

Comments
 (0)