]> granicus.if.org Git - python/commitdiff
Change a bunch of file encodings from Latin-1 to UTF-8.
authorGuido van Rossum <guido@python.org>
Mon, 16 Jul 2007 23:10:57 +0000 (23:10 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Jul 2007 23:10:57 +0000 (23:10 +0000)
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.

Lib/distutils/command/bdist_msi.py
Lib/encodings/punycode.py
Lib/getopt.py
Lib/lib-tk/Tix.py
Lib/msilib/__init__.py
Lib/test/test_csv.py

index f31bdedac6fefe5dd84b55f8caefaf4387e09b80..012d06ea69e332a1f131481320aedb8f5866eca8 100644 (file)
@@ -1,5 +1,5 @@
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2005, 2006 Martin v. Löwis
+# -*- coding: utf-8 -*-
+# Copyright (C) 2005, 2006 Martin v. Löwis
 # Licensed to PSF under a Contributor Agreement.
 # The bdist_wininst command proper
 # based on bdist_wininst
index 4c22fe5166e1a769f2877d671fcf52321789fd0e..f650f6c22c97f56b8acd0fd96997b635054db9cf 100644 (file)
@@ -1,7 +1,7 @@
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 """ Codec for the Punicode encoding, as specified in RFC 3492
 
-Written by Martin v. Löwis.
+Written by Martin v. Löwis.
 """
 
 import codecs
index 4882fdc25e1a3dab896145d8b5238618e2735640..93777b4937ffb90d709555fb357d37d799527355 100644 (file)
@@ -1,4 +1,4 @@
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 """Parser for command line options.
 
 This module helps scripts to parse the command line arguments in
@@ -20,7 +20,7 @@ option involved with the exception.
 # Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
 # to class-based exceptions.
 #
-# Peter Åstrand <astrand@lysator.liu.se> added gnu_getopt().
+# Peter Ã\85strand <astrand@lysator.liu.se> added gnu_getopt().
 #
 # TODO for gnu_getopt():
 #
index 970e7aee6b80b71b946fb96d3ad0b0651b2d54c3..a91b003ebe813ef4ad5f9432ff25d6ac4a96c19d 100755 (executable)
@@ -1,4 +1,4 @@
-# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
+# -*-mode: python; fill-column: 75; tab-width: 8 -*-
 #
 # $Id$
 #
index ad3bf623a519cefe7d23b629ca897113757f6a00..e2ea8145fdcb5981fd400b2fdf7a2a7fc7edc2bf 100644 (file)
@@ -1,5 +1,5 @@
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2005 Martin v. Löwis
+# -*- coding: utf-8 -*-
+# Copyright (C) 2005 Martin v. Löwis
 # Licensed to PSF under a Contributor Agreement.
 from _msi import *
 import os, string, re
index d655bf06d77961468463a7bd931c6563a7faf9bf..e623a020ce76f4898f2ba2b59a23371191c79ae0 100644 (file)
@@ -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__]