From e56c6dfab6c87ba16017854e9521eb2f251856fb Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Thu, 21 Apr 2016 11:20:09 -0300 Subject: [PATCH] Revert "Minor fixes #232" This reverts commit 720c4d22d80876028da425401f0315fd54637649. --- telegram/inlinekeyboardbutton.py | 2 -- telegram/inlinequery.py | 2 -- tests/test_inlinequery.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/telegram/inlinekeyboardbutton.py b/telegram/inlinekeyboardbutton.py index 1439f0b91..20d24f015 100644 --- a/telegram/inlinekeyboardbutton.py +++ b/telegram/inlinekeyboardbutton.py @@ -56,8 +56,6 @@ class InlineKeyboardButton(TelegramObject): @staticmethod def de_json(data): - data = super(InlineKeyboardButton, InlineKeyboardButton).de_json(data) - if not data: return None diff --git a/telegram/inlinequery.py b/telegram/inlinequery.py index 1bd9c44c8..706b48a6c 100644 --- a/telegram/inlinequery.py +++ b/telegram/inlinequery.py @@ -62,8 +62,6 @@ class InlineQuery(TelegramObject): Returns: telegram.InlineQuery: """ - data = super(InlineQuery, InlineQuery).de_json(data) - if not data: return None diff --git a/tests/test_inlinequery.py b/tests/test_inlinequery.py index df08998f0..c86697dad 100644 --- a/tests/test_inlinequery.py +++ b/tests/test_inlinequery.py @@ -70,7 +70,7 @@ class InlineQueryTest(BaseTest, unittest.TestCase): inlinequery = telegram.InlineQuery.de_json(self.json_dict).to_dict() self.assertTrue(self.is_dict(inlinequery)) - self.assertDictEqual(inlinequery, self.json_dict) + # self.assertDictEqual(inlinequery, self.json_dict) if __name__ == '__main__':