Skip to content

Commit

Permalink
dict.keys() returns an instance of dict_keys in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemacfarlane committed Oct 11, 2014
1 parent c867b8e commit 2938ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/z3c/rml/attr.py
Expand Up @@ -219,7 +219,7 @@ class Choice(BaseChoice):

def __init__(self, choices=None, doLower=True, *args, **kw):
super(Choice, self).__init__(*args, **kw)
if isinstance(choices, (tuple, list)):
if not isinstance(choices, dict):
choices = dict(
[(val.lower() if doLower else val, val) for val in choices])
else:
Expand Down

0 comments on commit 2938ebe

Please sign in to comment.