Fix NameError in Python 3

This commit is contained in:
Andy Kluger 2015-10-08 16:46:15 -04:00
parent 3f335c37ce
commit 9e8b11051c
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ ForceReply
"""
import json
import six
class JsonSerializable:
@ -76,7 +77,7 @@ class JsonDeserializable:
else:
d[x] = y
return unicode(d)
return six.text_type(d)
class Update(JsonDeserializable):
@classmethod