Skip to content

Commit 7ea386e

Browse files
committed
Issue 19504: Change "customise" to "customize" American spelling.
1 parent 39e9af6 commit 7ea386e

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Doc/reference/datamodel.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ Basic customization
11171117
instance; for example: ``BaseClass.__init__(self, [args...])``.
11181118

11191119
Because :meth:`__new__` and :meth:`__init__` work together in constructing
1120-
objects (:meth:`__new__` to create it, and :meth:`__init__` to customise it),
1120+
objects (:meth:`__new__` to create it, and :meth:`__init__` to customize it),
11211121
no non-``None`` value may be returned by :meth:`__init__`; doing so will
11221122
cause a :exc:`TypeError` to be raised at runtime.
11231123

@@ -1637,7 +1637,7 @@ By default, classes are constructed using :func:`type`. The class body is
16371637
executed in a new namespace and the class name is bound locally to the
16381638
result of ``type(name, bases, namespace)``.
16391639

1640-
The class creation process can be customised by passing the ``metaclass``
1640+
The class creation process can be customized by passing the ``metaclass``
16411641
keyword argument in the class definition line, or by inheriting from an
16421642
existing class that included such an argument. In the following example,
16431643
both ``MyClass`` and ``MySubclass`` are instances of ``Meta``::

Doc/whatsnew/2.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ encoding. Encodings are named by strings, such as ``'ascii'``, ``'utf-8'``,
166166
registering new encodings that are then available throughout a Python program.
167167
If an encoding isn't specified, the default encoding is usually 7-bit ASCII,
168168
though it can be changed for your Python installation by calling the
169-
``sys.setdefaultencoding(encoding)`` function in a customised version of
169+
``sys.setdefaultencoding(encoding)`` function in a customized version of
170170
:file:`site.py`.
171171

172172
Combining 8-bit and Unicode strings always coerces to Unicode, using the default
@@ -1139,7 +1139,7 @@ module.
11391139
Unix, not to be confused with :program:`gzip`\ -format files (which are
11401140
supported by the :mod:`gzip` module) (Contributed by James C. Ahlstrom.)
11411141

1142-
* :mod:`imputil`: A module that provides a simpler way for writing customised
1142+
* :mod:`imputil`: A module that provides a simpler way for writing customized
11431143
import hooks, in comparison to the existing :mod:`ihooks` module. (Implemented
11441144
by Greg Stein, with much discussion on python-dev along the way.)
11451145

Lib/http/cookiejar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ class CookiePolicy:
833833
May also modify cookies, though this is probably a bad idea.
834834
835835
The subclass DefaultCookiePolicy defines the standard rules for Netscape
836-
and RFC 2965 cookies -- override that if you want a customised policy.
836+
and RFC 2965 cookies -- override that if you want a customized policy.
837837
838838
"""
839839
def set_ok(self, cookie, request):

Lib/test/cfgparser.2

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
# Unix users can map to different SMB User names
130130
; username map = /etc/samba/smbusers
131131

132-
# Using the following line enables you to customise your configuration
132+
# Using the following line enables you to customize your configuration
133133
# on a per machine basis. The %m gets replaced with the netbios name
134134
# of the machine that is connecting
135135
; include = /etc/samba/smb.conf.%m

Lib/test/test_gdb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def run_gdb(*args, **env_vars):
9191
raise unittest.SkipTest("gdb not built with embedded python support")
9292

9393
# Verify that "gdb" can load our custom hooks, as OS security settings may
94-
# disallow this without a customised .gdbinit.
94+
# disallow this without a customized .gdbinit.
9595
_, gdbpy_errors = run_gdb('--args', sys.executable)
9696
if "auto-loading has been declined" in gdbpy_errors:
9797
msg = "gdb security settings prevent use of custom hooks: "

Lib/unittest/test/test_discovery.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def loadTestsFromModule(module, pattern=None):
275275
self.assertEqual(Module.load_tests_args,
276276
[(loader, [], 'test*.py')])
277277

278-
def test_find_tests_customise_via_package_pattern(self):
278+
def test_find_tests_customize_via_package_pattern(self):
279279
# This test uses the example 'do-nothing' load_tests from
280280
# https://docs.python.org/3/library/unittest.html#load-tests-protocol
281281
# to make sure that that actually works.

Objects/exceptions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ SimpleExtendsException(PyExc_Exception, AttributeError,
12631263
* SyntaxError extends Exception
12641264
*/
12651265

1266-
/* Helper function to customise error message for some syntax errors */
1266+
/* Helper function to customize error message for some syntax errors */
12671267
static int _report_missing_parentheses(PySyntaxErrorObject *self);
12681268

12691269
static int

Python/bltinmodule.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ sorted as builtin_sorted
20682068
20692069
Return a new list containing all items from the iterable in ascending order.
20702070
2071-
A custom key function can be supplied to customise the sort order, and the
2071+
A custom key function can be supplied to customize the sort order, and the
20722072
reverse flag can be set to request the result in descending order.
20732073
[end disabled clinic input]*/
20742074

@@ -2078,7 +2078,7 @@ PyDoc_STRVAR(builtin_sorted__doc__,
20782078
"\n"
20792079
"Return a new list containing all items from the iterable in ascending order.\n"
20802080
"\n"
2081-
"A custom key function can be supplied to customise the sort order, and the\n"
2081+
"A custom key function can be supplied to customize the sort order, and the\n"
20822082
"reverse flag can be set to request the result in descending order.");
20832083

20842084
#define BUILTIN_SORTED_METHODDEF \

0 commit comments

Comments
 (0)