cpython: 1c714c35c02a (original) (raw)

Mercurial > cpython

changeset 87124:1c714c35c02a 3.3

Issue #19504: Used American spelling for 'customize'. [#19504]

Vinay Sajip <vinay_sajip@yahoo.co.uk>
date Fri, 15 Nov 2013 20:58:13 +0000
parents 058810fe1b98
children 08c7bc4266e6 db6ea9abd317
files Doc/howto/logging-cookbook.rst Doc/library/logging.handlers.rst Doc/library/logging.rst Lib/venv/__init__.py PC/launcher.c
diffstat 5 files changed, 11 insertions(+), 11 deletions(-)[+] [-] Doc/howto/logging-cookbook.rst 10 Doc/library/logging.handlers.rst 2 Doc/library/logging.rst 4 Lib/venv/__init__.py 2 PC/launcher.c 4

line wrap: on

line diff

--- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -1098,7 +1098,7 @@ Python 3.2 or later. .. _custom-logrecord: -Customising LogRecord +Customizing LogRecord ------------------------- Every logging event is represented by a :class:LogRecord instance. @@ -1315,7 +1315,7 @@ of the Django documentation. .. _cookbook-rotator-namer: -Using a rotator and namer to customise log rotation processing +Using a rotator and namer to customize log rotation processing -------------------------------------------------------------- An example of how you can define a namer and rotator is given in the following @@ -1696,14 +1696,14 @@ Python used. .. currentmodule:: logging.config -Customising handlers with :func:dictConfig +Customizing handlers with :func:dictConfig -------------------------------------------- -There are times when you want to customise logging handlers in particular ways, +There are times when you want to customize logging handlers in particular ways, and if you use :func:dictConfig you may be able to do this without subclassing. As an example, consider that you may want to set the ownership of a log file. On POSIX, this is easily done using :func:shutil.chown, but the file -handlers in the stdlib don't offer built-in support. You can customise handler +handlers in the stdlib don't offer built-in support. You can customize handler creation using a plain function such as:: def owned_file_handler(filename, mode='a', encoding=None, owner=None):

--- a/Doc/library/logging.handlers.rst +++ b/Doc/library/logging.handlers.rst @@ -892,7 +892,7 @@ possible, while any potentially slow ope Enqueues the record on the queue using put_nowait(); you may want to override this if you want to use blocking behaviour, or a

--- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -845,8 +845,8 @@ functions. Return either the standard :class:Logger class, or the last class passed to :func:setLoggerClass. This function may be called from within a new class

--- a/Lib/venv/init.py +++ b/Lib/venv/init.py @@ -38,7 +38,7 @@ logger = logging.getLogger(name) class EnvBuilder: """ This class exists to allow virtual environment creation to be

--- a/PC/launcher.c +++ b/PC/launcher.c @@ -807,10 +807,10 @@ parse_shebang(wchar_t * shebang_line, in } if (vpp == NULL) { /