From e843e021a26bcfa6cf7b11863c898501d22f16f4 Mon Sep 17 00:00:00 2001 From: Chia-hung Tai Date: Sat, 25 Dec 2021 18:00:56 +0800 Subject: [PATCH] Use encoding="utf-8" in open. (#773) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 508824955..ab397e1cf 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ from setuptools import find_packages, setup, Extension def read(rel_path: str) -> str: here = os.path.abspath(os.path.dirname(__file__)) - with open(os.path.join(here, rel_path)) as fp: + with open(os.path.join(here, rel_path), encoding="utf-8") as fp: return fp.read()