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:
2
setup.py
2
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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user