Skip to content

Commit

Permalink
Merge pull request #59 from spotify/issue-53
Browse files Browse the repository at this point in the history
Fixing py3 compatibility in validate.py
  • Loading branch information
econchick committed Oct 8, 2015
2 parents 7059b36 + bd8adfd commit 71f7e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ramlfications/validate.py
Expand Up @@ -196,7 +196,7 @@ def assigned_traits(inst, attr, value):
"ined in the root of the API.".format(v, inst.path)
)
raise InvalidResourceNodeError(msg)
if not isinstance(v.keys()[0], str): # NOCOV
if not isinstance(list(iterkeys(v))[0], str): # NOCOV
msg = ("'{0}' needs to be a string referring to a "
"trait, or a dictionary mapping parameter "
"values to a trait".format(v))
Expand Down

0 comments on commit 71f7e84

Please sign in to comment.