Skip to content

Commit

Permalink
I am an idiot.
Browse files Browse the repository at this point in the history
  • Loading branch information
econchick committed Oct 8, 2015
1 parent 7059b36 commit bd8adfd
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

1 comment on commit bd8adfd

@klaygomes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

Please sign in to comment.