Browse Source

remove __str__ override in SteamIntEnum

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
823e2bd6f5
  1. 2
      steam/core/msg.py
  2. 3
      steam/enums/base.py

2
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__

3
steam/enums/base.py

@ -2,5 +2,4 @@ from enum import IntEnum
class SteamIntEnum(IntEnum):
def __str__(self):
return self.name
pass

Loading…
Cancel
Save