From 5499d38bb4110fc7ba922085e9ebcb02c07ce7ae Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Tue, 5 Sep 2023 17:32:51 -0400 Subject: [PATCH] mucha: streamline mucha_postprocess (thanks Bottersnike!) --- core/mucha.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/mucha.py b/core/mucha.py index 185dd2d..7793f4b 100644 --- a/core/mucha.py +++ b/core/mucha.py @@ -140,9 +140,7 @@ class MuchaServlet: def mucha_postprocess(self, data: dict) -> Optional[bytes]: try: - urlencode = "" - for k, v in data.items(): - urlencode += f"{k}={v}&" + urlencode = "&".join(f"{k}={v}" for k, v in data.items()) return urlencode.encode()