From 7dd53b1396b28b132eca5cbe9978a37af0a13b06 Mon Sep 17 00:00:00 2001 From: uburuntu Date: Tue, 14 Aug 2018 12:23:15 +0300 Subject: [PATCH] fix: support python2 super() --- telebot/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 2e48b5d..c59a4d6 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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.