From f57979941a0e169f0863c8441664d6c36bc7ef15 Mon Sep 17 00:00:00 2001 From: Super Zombi Date: Thu, 24 Jul 2025 22:31:42 +0300 Subject: [PATCH] Fix setuptools error --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index db4e658..4b1e249 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,11 @@ from setuptools import setup, find_packages import re -with open('README.md') as f: +with open('README.md', encoding='utf-8') as f: long_description = f.read() version = '' -with open('discordrpc/__init__.py') as f: +with open('discordrpc/__init__.py', encoding='utf-8') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: