File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ def _load_yaml(self):
373373 # Paths are be relative to the project root.
374374 filename = os .path .join (self .project_dir , filename )
375375 if os .path .isfile (filename ):
376- with open (filename ) as f :
376+ with open (filename , encoding = "utf-8" ) as f :
377377 # load the yaml file
378378 # NOTE: for the SafeLoader argument, see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
379379 content = yaml .load (f , Loader = yaml .SafeLoader )
Original file line number Diff line number Diff line change 2626
2727def read_file (fname ):
2828 "Read a local file"
29- return open (os .path .join (os .path .dirname (__file__ ), fname )).read ()
29+ return open (os .path .join (os .path .dirname (__file__ ), fname ), encoding = "utf-8" ).read ()
3030
3131
3232setup (
You can’t perform that action at this time.
0 commit comments