From 9b439cf789f6e372d3ecaa717a7ca1784cc7ae4a Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 15 Nov 2016 16:39:54 +0200 Subject: [PATCH] remove redundant __init__ in StructMessage subclasses --- steam/core/msg/structs.py | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/steam/core/msg/structs.py b/steam/core/msg/structs.py index a4a9213..8a26484 100644 --- a/steam/core/msg/structs.py +++ b/steam/core/msg/structs.py @@ -10,7 +10,7 @@ def get_struct(emsg): return _emsg_map.get(emsg, None) class StructMessageMeta(type): - """Automatically maps subclasses of :class:`StructMessage` to ``EMsg``""" + """Automatically adds subclasses of :class:`StructMessage` to the ``EMsg`` map""" def __new__(metacls, name, bases, classdict): cls = type.__new__(metacls, name, bases, classdict) @@ -64,10 +64,6 @@ class ChannelEncryptResponse(StructMessage): key = '' crc = 0 - def __init__(self, data=None): - if data: - self.load(data) - def serialize(self): return struct.pack("