diff --git a/steam/client/builtins/friends.py b/steam/client/builtins/friends.py index 45eb1b9..216bf8a 100644 --- a/steam/client/builtins/friends.py +++ b/steam/client/builtins/friends.py @@ -104,7 +104,7 @@ class SteamFriendlist(EventEmitter): else: oldrel, suser.relationship = suser.relationship, rel - if rel == EFriendRelationship.No: + if rel == EFriendRelationship.NONE: self.emit(self.EVENT_FRIEND_REMOVED, self._fr.pop(steamid)) elif oldrel in (2,4) and rel == EFriendRelationship.Friend: self.emit(self.EVENT_FRIEND_NEW, suser) diff --git a/steam/client/user.py b/steam/client/user.py index 6bba4cb..9e9138c 100644 --- a/steam/client/user.py +++ b/steam/client/user.py @@ -11,7 +11,7 @@ class SteamUser(object): """ _pstate = None steam_id = SteamID() - relationship = EFriendRelationship.No #: friendship status + relationship = EFriendRelationship.NONE #: friendship status def __init__(self, steam_id, steam): self._pstate_ready = Event() diff --git a/steam/enums/common.py b/steam/enums/common.py index e4d6223..209612d 100644 --- a/steam/enums/common.py +++ b/steam/enums/common.py @@ -256,7 +256,7 @@ class EOSType(SteamIntEnum): class EFriendRelationship(SteamIntEnum): - No = 0 + NONE = 0 Blocked = 1 RequestRecipient = 2 Friend = 3 @@ -299,7 +299,7 @@ class EAccountFlags(SteamIntEnum): GlobalModerator = 134217728 class EFriendFlags(SteamIntEnum): - No = 0 + NONE = 0 Blocked = 1 FriendshipRequested = 2 Immediate = 4