summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-16 23:10:57 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-16 23:10:57 (GMT)
commitd77d6992a5e31660a9eb8dc02f6c28d464c75ed8 (patch)
tree14ac0b661847ce759e4799fd4d1c95af2a459d15 /Lib/test
parent6a2ccd0273c9694afd81bc141e2005820a30a29c (diff)
downloadcpython-d77d6992a5e31660a9eb8dc02f6c28d464c75ed8.zip
cpython-d77d6992a5e31660a9eb8dc02f6c28d464c75ed8.tar.gz
cpython-d77d6992a5e31660a9eb8dc02f6c28d464c75ed8.tar.bz2
Change a bunch of file encodings from Latin-1 to UTF-8.
Remove the encoding from Tix.py (it doesn't seem to need one). Note: we still have to keep the "coding: utf-8" declaration for files that aren't pure ASCII, as the default per PEP 3120 hasn't been implemented yet.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_csv.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index d655bf0..e623a02 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -1,4 +1,4 @@
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
# Copyright (C) 2001,2002 Python Software Foundation
# csv package unit tests
@@ -974,16 +974,16 @@ else:
## class TestUnicode(unittest.TestCase):
## def test_unicode_read(self):
## import codecs
-## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
-## "Marc André Lemburg,"
+## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
+## "Marc André Lemburg,"
## "Guido van Rossum,"
-## "François Pinard\r\n"),
+## "François Pinard\r\n"),
## data_encoding='iso-8859-1')
## reader = csv.reader(f)
-## self.assertEqual(list(reader), [[u"Martin von Löwis",
-## u"Marc André Lemburg",
-## u"Guido van Rossum",
-## u"François Pinardn"]])
+## self.assertEqual(list(reader), [["Martin von Löwis",
+## "Marc André Lemburg",
+## "Guido van Rossum",
+## "François Pinardn"]])
def test_main():
mod = sys.modules[__name__]