File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def get_content(name, splitlines=False):
2020
2121 here = os .path .abspath (os .path .dirname (__file__ ))
2222 path = os .path .join (here , name )
23- with io .open (path , encoding = "utf-8" ) as fd :
23+ with io .open (path , "r" , encoding = "utf-8" ) as fd :
2424 content = fd .read ()
2525 if splitlines :
2626 content = [row for row in content .splitlines () if row ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def get_content(name, splitlines=False):
1515
1616 here = os .path .abspath (os .path .dirname (__file__ ))
1717 path = os .path .join (here , name )
18- with io .open (path , encoding = "utf-8" ) as fd :
18+ with io .open (path , "r" , encoding = "utf-8" ) as fd :
1919 content = fd .read ()
2020 if splitlines :
2121 content = [row for row in content .splitlines () if row ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def get_content(name, splitlines=False):
1515
1616 here = os .path .abspath (os .path .dirname (__file__ ))
1717 path = os .path .join (here , name )
18- with io .open (path , encoding = "utf-8" ) as fd :
18+ with io .open (path , "r" , encoding = "utf-8" ) as fd :
1919 content = fd .read ()
2020 if splitlines :
2121 content = [row for row in content .splitlines () if row ]
You can’t perform that action at this time.
0 commit comments