From 7c84c72f06bd403f218be63fc4e829fbd61a4fe4 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 29 May 2017 21:27:20 +0200 Subject: [PATCH] Minor change to make the code more pythonic --- telethon/network/mtproto_sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/network/mtproto_sender.py b/telethon/network/mtproto_sender.py index 6be0ddcb..2d760550 100644 --- a/telethon/network/mtproto_sender.py +++ b/telethon/network/mtproto_sender.py @@ -236,7 +236,7 @@ class MtProtoSender: # If the code is not parsed manually, then it was parsed by the code generator! # In this case, we will simply treat the incoming TLObject as an Update, # if we can first find a matching TLObject - if code in tlobjects.keys(): + if code in tlobjects: result = reader.tgread_object() if updates is None: self._logger.debug('Ignored update for %s', repr(result))