mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
6a2ccd0273
commit
d77d6992a5
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2005, 2006 Martin v. Löwis
|
# Copyright (C) 2005, 2006 Martin v. Löwis
|
||||||
# Licensed to PSF under a Contributor Agreement.
|
# Licensed to PSF under a Contributor Agreement.
|
||||||
# The bdist_wininst command proper
|
# The bdist_wininst command proper
|
||||||
# based on bdist_wininst
|
# based on bdist_wininst
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
""" Codec for the Punicode encoding, as specified in RFC 3492
|
""" Codec for the Punicode encoding, as specified in RFC 3492
|
||||||
|
|
||||||
Written by Martin v. Löwis.
|
Written by Martin v. Löwis.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Parser for command line options.
|
"""Parser for command line options.
|
||||||
|
|
||||||
This module helps scripts to parse the command line arguments in
|
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
|
# Gerrit Holl <gerrit@nl.linux.org> moved the string-based exceptions
|
||||||
# to class-based exceptions.
|
# to class-based exceptions.
|
||||||
#
|
#
|
||||||
# Peter Åstrand <astrand@lysator.liu.se> added gnu_getopt().
|
# Peter Ã
strand <astrand@lysator.liu.se> added gnu_getopt().
|
||||||
#
|
#
|
||||||
# TODO for gnu_getopt():
|
# TODO for gnu_getopt():
|
||||||
#
|
#
|
||||||
|
|
|
@ -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$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2005 Martin v. Löwis
|
# Copyright (C) 2005 Martin v. Löwis
|
||||||
# Licensed to PSF under a Contributor Agreement.
|
# Licensed to PSF under a Contributor Agreement.
|
||||||
from _msi import *
|
from _msi import *
|
||||||
import os, string, re
|
import os, string, re
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2001,2002 Python Software Foundation
|
# Copyright (C) 2001,2002 Python Software Foundation
|
||||||
# csv package unit tests
|
# csv package unit tests
|
||||||
|
|
||||||
|
@ -974,16 +974,16 @@ else:
|
||||||
## class TestUnicode(unittest.TestCase):
|
## class TestUnicode(unittest.TestCase):
|
||||||
## def test_unicode_read(self):
|
## def test_unicode_read(self):
|
||||||
## import codecs
|
## import codecs
|
||||||
## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
|
## f = codecs.EncodedFile(StringIO("Martin von Löwis,"
|
||||||
## "Marc André Lemburg,"
|
## "Marc André Lemburg,"
|
||||||
## "Guido van Rossum,"
|
## "Guido van Rossum,"
|
||||||
## "François Pinard\r\n"),
|
## "François Pinard\r\n"),
|
||||||
## data_encoding='iso-8859-1')
|
## data_encoding='iso-8859-1')
|
||||||
## reader = csv.reader(f)
|
## reader = csv.reader(f)
|
||||||
## self.assertEqual(list(reader), [[u"Martin von Löwis",
|
## self.assertEqual(list(reader), [["Martin von Löwis",
|
||||||
## u"Marc André Lemburg",
|
## "Marc André Lemburg",
|
||||||
## u"Guido van Rossum",
|
## "Guido van Rossum",
|
||||||
## u"François Pinardn"]])
|
## "François Pinardn"]])
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
mod = sys.modules[__name__]
|
mod = sys.modules[__name__]
|
||||||
|
|
Loading…
Reference in New Issue