Skip to content

Commit f74c33a

Browse files
committed
Merge
2 parents 8f2ee0d + 7ea386e commit f74c33a

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ Basic customization
11231123
instance; for example: ``BaseClass.__init__(self, [args...])``.
11241124

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

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

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

Doc/whatsnew/2.0.rst

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def run_gdb(*args, **env_vars):
9090
raise unittest.SkipTest("gdb not built with embedded python support")
9191

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

Lib/unittest/test/test_discovery.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ SimpleExtendsException(PyExc_Exception, AttributeError,
12561256
* SyntaxError extends Exception
12571257
*/
12581258

1259-
/* Helper function to customise error message for some syntax errors */
1259+
/* Helper function to customize error message for some syntax errors */
12601260
static int _report_missing_parentheses(PySyntaxErrorObject *self);
12611261

12621262
static int

Python/bltinmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ sorted as builtin_sorted
20722072
20732073
Return a new list containing all items from the iterable in ascending order.
20742074
2075-
A custom key function can be supplied to customise the sort order, and the
2075+
A custom key function can be supplied to customize the sort order, and the
20762076
reverse flag can be set to request the result in descending order.
20772077
[end disabled clinic input]*/
20782078

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

20882088
#define BUILTIN_SORTED_METHODDEF \

0 commit comments

Comments
 (0)