py26 compat

This commit is contained in:
Jakub Warmuz
2015-03-27 23:49:09 +00:00
parent fadad74d48
commit 4b829603d0
+1 -1
View File
@@ -63,7 +63,7 @@ class _Constant(jose.JSONDeSerializable):
def from_json(cls, value):
if value not in cls.POSSIBLE_NAMES:
raise jose.DeserializationError(
'{} not recognized'.format(cls.__name__))
'{0} not recognized'.format(cls.__name__))
return cls.POSSIBLE_NAMES[value]
def __repr__(self):