Minor change to make the code more pythonic

This commit is contained in:
Lonami Exo 2017-05-29 21:27:20 +02:00
parent 042e3069a9
commit 7c84c72f06

View File

@ -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))