mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +08:00
Use encoding="utf-8" in open. (#773)
This commit is contained in:
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ from setuptools import find_packages, setup, Extension
|
|||||||
|
|
||||||
def read(rel_path: str) -> str:
|
def read(rel_path: str) -> str:
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
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()
|
return fp.read()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user