py26 compat

This commit is contained in:
Jakub Warmuz 2015-03-27 23:49:09 +00:00
parent fadad74d48
commit 4b829603d0
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

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):