From 08d812c61464181a942bb6afc86a41cc08124c8a Mon Sep 17 00:00:00 2001 From: Ricter Z Date: Sun, 5 Feb 2023 23:55:05 +0800 Subject: [PATCH] fix UnicodeDecodeError on windows --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 38690cc..b7de670 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ with open('requirements.txt') as f: def long_description(): - with codecs.open('README.rst', 'r') as readme: - return readme.read() + with codecs.open('README.rst', 'rb') as readme: + return readme.read().decode('utf-8') setup(