Skip to content

Commit faff2a1

Browse files
committed
Add some missing opening modes explicitly
1 parent 5a2d098 commit faff2a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/basemap/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

packages/basemap_data/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

packages/basemap_data_hires/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)