mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Explicitly use UTF-8 as the encoding for the normalization file.
This commit is contained in:
parent
5495957b6c
commit
234a34a564
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ def unistr(data):
|
|||
class NormalizationTest(unittest.TestCase):
|
||||
def test_main(self):
|
||||
part1_data = {}
|
||||
for line in open_urlresource(TESTDATAURL):
|
||||
for line in open_urlresource(TESTDATAURL, encoding="utf-8"):
|
||||
if '#' in line:
|
||||
line = line.split('#')[0]
|
||||
line = line.strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue