Skip to content

Commit 6ef7577

Browse files
committed
Specify file encodings
1 parent 0a1cd6f commit 6ef7577

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
'uritemplate'
77
]
88

9-
with open("README.rst") as file:
9+
with open("README.rst", encoding="utf-8") as file:
1010
readme = file.read()
1111

12-
with open("HISTORY.rst") as file:
12+
with open("HISTORY.rst", encoding="utf-8") as file:
1313
history = file.read()
1414

1515
setup(

tests/test_from_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def fixture_file_path(filename):
1212

1313
def load_examples(filename):
1414
path = fixture_file_path(filename)
15-
with open(path, 'r') as examples_file:
15+
with open(path, 'r', encoding="utf-8") as examples_file:
1616
examples = json.load(examples_file)
1717
return examples
1818

0 commit comments

Comments
 (0)