Skip to content

Commit 6c037ba

Browse files
committed
Don't specify an encoding, let open figure out an
appropriate one.
1 parent 292aa0d commit 6c037ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/list_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def test_print(self):
5353
d.append(d)
5454
d.append(400)
5555
try:
56-
fo = open(test_support.TESTFN, "w", encoding="ascii")
56+
fo = open(test_support.TESTFN, "w")
5757
fo.write(str(d))
5858
fo.close()
59-
fo = open(test_support.TESTFN, "r", encoding="ascii")
59+
fo = open(test_support.TESTFN, "r")
6060
self.assertEqual(fo.read(), repr(d))
6161
finally:
6262
fo.close()

0 commit comments

Comments
 (0)