aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Weinzierl <20560137+aWeinzierl@users.noreply.github.com>2021-01-28 00:06:58 +0100
committerAndreas Weinzierl <20560137+aWeinzierl@users.noreply.github.com>2021-01-28 00:06:58 +0100
commit569d9815c65efe14e9ffba0899600a557269c7a6 (patch)
treed08891f6ac19bf6f72c1ff041b3a2a0ea79aeefd
parent0f7b678f5776a940b590e55381eba5ccb511d9d7 (diff)
remove redundant utf-8 setting
-rw-r--r--sticker/stickerimport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sticker/stickerimport.py b/sticker/stickerimport.py
index 5327cc6..c852e78 100644
--- a/sticker/stickerimport.py
+++ b/sticker/stickerimport.py
@@ -71,7 +71,7 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull, output_dir
already_uploaded = {}
try:
- with util.open_utf8(pack_path, encoding="utf-8") as pack_file:
+ with util.open_utf8(pack_path) as pack_file:
existing_pack = json.load(pack_file)
already_uploaded = {int(sticker["net.maunium.telegram.sticker"]["id"]): sticker
for sticker in existing_pack["stickers"]}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage