NoisyKarma: Fix Python 2.6 compatibility.

master
Valentin Lorentz 2014-03-16 22:42:06 +00:00
parent 818a1aa978
commit 09c6903d18
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def value_validator(value):
for subvalue in value:
if not isinstance(subvalue, dict):
return _('List items must be dicts.')
if set(value.keys()) != {'action', 'message'}:
if set(value.keys()) != set(['action', 'message']):
return _('List items must be dicts with "action" and "message" '
'as keys.')
return None