Remove critical code from assert statements

This commit is contained in:
Lonami Exo
2018-08-14 19:14:13 +02:00
parent 7efa53fedf
commit f4b9c9d6d4
4 changed files with 17 additions and 7 deletions

View File

@@ -31,7 +31,8 @@ class GzipPacked(TLObject):
@staticmethod
def read(reader):
assert reader.read_int(signed=False) == GzipPacked.CONSTRUCTOR_ID
constructor = reader.read_int(signed=False)
assert constructor == GzipPacked.CONSTRUCTOR_ID
return gzip.decompress(reader.tgread_bytes())
@classmethod