From 78471ad2bcee914591b76e3d9a59084d73d4a595 Mon Sep 17 00:00:00 2001 From: dolfies Date: Sat, 27 Nov 2021 20:14:59 -0500 Subject: [PATCH] Misc. nitpicks --- discord/mentions.py | 4 ++-- discord/tracking.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/mentions.py b/discord/mentions.py index 84a1aca6b..dd2929712 100644 --- a/discord/mentions.py +++ b/discord/mentions.py @@ -135,9 +135,9 @@ class AllowedMentions: return data # type: ignore def merge(self, other: AllowedMentions) -> AllowedMentions: - # Creates a new AllowedMentions by merging from another one. + # Creates a new AllowedMentions by merging from another one # Merge is done by using the 'self' values unless explicitly - # overridden by the 'other' values. + # overridden by the 'other' values everyone = self.everyone if other.everyone is default else other.everyone users = self.users if other.users is default else other.users roles = self.roles if other.roles is default else other.roles diff --git a/discord/tracking.py b/discord/tracking.py index b67c89c04..4d0a4466e 100644 --- a/discord/tracking.py +++ b/discord/tracking.py @@ -70,7 +70,7 @@ class ContextProperties: # Thank you Discord-S.C.U.M try: return library[data.get('location', 'None')] except KeyError: - return b64encode(json.dumps(data).encode()).decode('utf-8') + return b64encode(json.dumps(data, separators=(',', ':')).encode()).decode('utf-8') @classmethod def _empty(cls) -> ContextProperties: