From 823e2bd6f5818a39ce1c3d967ae60d95783e627c Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 30 Dec 2015 18:07:45 +0000 Subject: [PATCH] remove __str__ override in SteamIntEnum --- steam/core/msg.py | 2 +- steam/enums/base.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/steam/core/msg.py b/steam/core/msg.py index f1d0a40..2b41bdd 100644 --- a/steam/core/msg.py +++ b/steam/core/msg.py @@ -215,7 +215,7 @@ def get_cmsg(emsg): if emsg == EMsg.Multi: return steammessages_base_pb2.CMsgMulti - emsg = "cmsg" + str(emsg).lower() + emsg = "cmsg" + str(emsg).split('.', 1)[1].lower() if not cmsg_lookup: cmsg_list = steammessages_clientserver_pb2.__dict__ diff --git a/steam/enums/base.py b/steam/enums/base.py index bbbd026..7151e1a 100644 --- a/steam/enums/base.py +++ b/steam/enums/base.py @@ -2,5 +2,4 @@ from enum import IntEnum class SteamIntEnum(IntEnum): - def __str__(self): - return self.name + pass