1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Use encoding="utf-8" in open. (#773)

This commit is contained in:
Chia-hung Tai
2021-12-25 18:00:56 +08:00
committed by GitHub
parent 5aa5a6f356
commit e843e021a2

View File

@@ -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()