Browse Source

steamid: define __str__ as py3.8 maps it __repr__

pull/218/head
Rossen Georgiev 5 years ago
parent
commit
b55e31b5ce
  1. 3
      steam/steamid.py

3
steam/steamid.py

@ -57,6 +57,9 @@ class SteamID(intBase):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
pass pass
def __str__(self):
return str(int(self))
def __repr__(self): def __repr__(self):
return "%s(id=%s, type=%s, universe=%s, instance=%s)" % ( return "%s(id=%s, type=%s, universe=%s, instance=%s)" % (
self.__class__.__name__, self.__class__.__name__,

Loading…
Cancel
Save