mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #85 from AndydeCleyre/patch-2
Fix NameError in Python 3
This commit is contained in:
commit
3273aa9afa
@ -21,6 +21,7 @@ ForceReply
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import six
|
||||||
|
|
||||||
|
|
||||||
class JsonSerializable:
|
class JsonSerializable:
|
||||||
@ -76,7 +77,7 @@ class JsonDeserializable:
|
|||||||
else:
|
else:
|
||||||
d[x] = y
|
d[x] = y
|
||||||
|
|
||||||
return unicode(d)
|
return six.text_type(d)
|
||||||
|
|
||||||
class Update(JsonDeserializable):
|
class Update(JsonDeserializable):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user