Revert "Minor fixes #232"

This reverts commit 720c4d22d8.
This commit is contained in:
Leandro Toledo 2016-04-21 11:20:09 -03:00
parent 263310be36
commit e56c6dfab6
3 changed files with 1 additions and 5 deletions

View file

@ -56,8 +56,6 @@ class InlineKeyboardButton(TelegramObject):
@staticmethod
def de_json(data):
data = super(InlineKeyboardButton, InlineKeyboardButton).de_json(data)
if not data:
return None

View file

@ -62,8 +62,6 @@ class InlineQuery(TelegramObject):
Returns:
telegram.InlineQuery:
"""
data = super(InlineQuery, InlineQuery).de_json(data)
if not data:
return None

View file

@ -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__':