From 6c037ba7dcb67863edf538d39d73941c7811dd14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 24 May 2007 18:05:27 +0000 Subject: Don't specify an encoding, let open figure out an appropriate one. --- Lib/test/list_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index 5162f2e..468a1bc 100644 --- a/Lib/test/list_tests.py +++ b/Lib/test/list_tests.py @@ -53,10 +53,10 @@ class CommonTest(seq_tests.CommonTest): d.append(d) d.append(400) try: - fo = open(test_support.TESTFN, "w", encoding="ascii") + fo = open(test_support.TESTFN, "w") fo.write(str(d)) fo.close() - fo = open(test_support.TESTFN, "r", encoding="ascii") + fo = open(test_support.TESTFN, "r") self.assertEqual(fo.read(), repr(d)) finally: fo.close() -- cgit v0.12