diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 18:05:27 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 18:05:27 (GMT) |
commit | 6c037ba7dcb67863edf538d39d73941c7811dd14 (patch) | |
tree | 7e14196408dd7b61b2fb353c7b2526e02ff531ef /Lib | |
parent | 292aa0d80631b3239a46c9f90718f92a8b950b3b (diff) | |
download | cpython-6c037ba7dcb67863edf538d39d73941c7811dd14.zip cpython-6c037ba7dcb67863edf538d39d73941c7811dd14.tar.gz cpython-6c037ba7dcb67863edf538d39d73941c7811dd14.tar.bz2 |
Don't specify an encoding, let open figure out an
appropriate one.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/list_tests.py | 4 |
1 files 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() |