Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d77d699

Browse files
committed
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.
1 parent 6a2ccd0 commit d77d699

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

Lib/distutils/command/bdist_msi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# -*- coding: iso-8859-1 -*-
2-
# Copyright (C) 2005, 2006 Martin v. Löwis
1+
# -*- coding: utf-8 -*-
2+
# Copyright (C) 2005, 2006 Martin v. Löwis
33
# Licensed to PSF under a Contributor Agreement.
44
# The bdist_wininst command proper
55
# based on bdist_wininst

Lib/encodings/punycode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# -*- coding: iso-8859-1 -*-
1+
# -*- coding: utf-8 -*-
22
""" Codec for the Punicode encoding, as specified in RFC 3492
33
4-
Written by Martin v. Löwis.
4+
Written by Martin v. Löwis.
55
"""
66

77
import codecs

Lib/getopt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: iso-8859-1 -*-
1+
# -*- coding: utf-8 -*-
22
"""Parser for command line options.
33
44
This module helps scripts to parse the command line arguments in
@@ -20,7 +20,7 @@
2020
# Gerrit Holl <[email protected]> moved the string-based exceptions
2121
# to class-based exceptions.
2222
#
23-
# Peter Åstrand <[email protected]> added gnu_getopt().
23+
# Peter Åstrand <[email protected]> added gnu_getopt().
2424
#
2525
# TODO for gnu_getopt():
2626
#

Lib/lib-tk/Tix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
1+
# -*-mode: python; fill-column: 75; tab-width: 8 -*-
22
#
33
# $Id$
44
#

Lib/msilib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# -*- coding: iso-8859-1 -*-
2-
# Copyright (C) 2005 Martin v. Löwis
1+
# -*- coding: utf-8 -*-
2+
# Copyright (C) 2005 Martin v. Löwis
33
# Licensed to PSF under a Contributor Agreement.
44
from _msi import *
55
import os, string, re

Lib/test/test_csv.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: iso-8859-1 -*-
1+
# -*- coding: utf-8 -*-
22
# Copyright (C) 2001,2002 Python Software Foundation
33
# csv package unit tests
44

@@ -974,16 +974,16 @@ def test_write(self):
974974
## class TestUnicode(unittest.TestCase):
975975
## def test_unicode_read(self):
976976
## import codecs
977-
## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
978-
## "Marc André Lemburg,"
977+
## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
978+
## "Marc André Lemburg,"
979979
## "Guido van Rossum,"
980-
## "François Pinard\r\n"),
980+
## "François Pinard\r\n"),
981981
## data_encoding='iso-8859-1')
982982
## reader = csv.reader(f)
983-
## self.assertEqual(list(reader), [[u"Martin von Löwis",
984-
## u"Marc André Lemburg",
985-
## u"Guido van Rossum",
986-
## u"François Pinardn"]])
983+
## self.assertEqual(list(reader), [["Martin von Löwis",
984+
## "Marc André Lemburg",
985+
## "Guido van Rossum",
986+
## "François Pinardn"]])
987987

988988
def test_main():
989989
mod = sys.modules[__name__]

0 commit comments

Comments
 (0)