1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #561 from uburuntu/InputMedia

fix: support python2 super()
This commit is contained in:
FrankWang 2018-08-14 21:58:48 +08:00 committed by GitHub
commit fe6959c38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import six
from telebot import util
class JsonSerializable:
class JsonSerializable(object):
"""
Subclasses of this class are guaranteed to be able to be converted to JSON format.
All subclasses of this class must override to_json.
@ -26,7 +26,7 @@ class JsonSerializable:
raise NotImplementedError
class Dictionaryable:
class Dictionaryable(object):
"""
Subclasses of this class are guaranteed to be able to be converted to dictionary.
All subclasses of this class must override to_dic.
@ -42,7 +42,7 @@ class Dictionaryable:
raise NotImplementedError
class JsonDeserializable:
class JsonDeserializable(object):
"""
Subclasses of this class are guaranteed to be able to be created from a json-style dict or json formatted string.
All subclasses of this class must override de_json.