Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
56b04352
Commit
56b04352
authored
Nov 15, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Issue #19504: Used American spelling for 'customize'.
parents
5e75829e
9c10d6b8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
Doc/howto/logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+5
-5
Doc/library/logging.handlers.rst
Doc/library/logging.handlers.rst
+1
-1
Doc/library/logging.rst
Doc/library/logging.rst
+2
-2
Lib/venv/__init__.py
Lib/venv/__init__.py
+1
-1
PC/launcher.c
PC/launcher.c
+2
-2
No files found.
Doc/howto/logging-cookbook.rst
View file @
56b04352
...
...
@@ -1096,7 +1096,7 @@ Python 3.2 or later.
.. _custom-logrecord:
Customi
s
ing ``LogRecord``
Customi
z
ing ``LogRecord``
-------------------------
Every logging event is represented by a :class:`LogRecord` instance.
...
...
@@ -1313,7 +1313,7 @@ of the Django documentation.
.. _cookbook-rotator-namer:
Using a rotator and namer to customi
s
e log rotation processing
Using a rotator and namer to customi
z
e log rotation processing
--------------------------------------------------------------
An example of how you can define a namer and rotator is given in the following
...
...
@@ -1694,14 +1694,14 @@ Python used.
.. currentmodule:: logging.config
Customi
s
ing handlers with :func:`dictConfig`
Customi
z
ing handlers with :func:`dictConfig`
--------------------------------------------
There are times when you want to customi
s
e logging handlers in particular ways,
There are times when you want to customi
z
e 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 customi
s
e handler
handlers in the stdlib don't offer built-in support. You can customi
z
e handler
creation using a plain function such as::
def owned_file_handler(filename, mode='a', encoding=None, owner=None):
...
...
Doc/library/logging.handlers.rst
View file @
56b04352
...
...
@@ -904,7 +904,7 @@ possible, while any potentially slow operations (such as sending an email via
Enqueues the record on the queue using ``put_nowait()``; you may
want to override this if you want to use blocking behaviour, or a
timeout, or a customi
s
ed queue implementation.
timeout, or a customi
z
ed queue implementation.
...
...
Doc/library/logging.rst
View file @
56b04352
...
...
@@ -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
definition
,
to
ensure
that
installing
a
customi
s
ed
:
class
:`
Logger
`
class
will
not
undo
customi
s
ations
already
applied
by
other
code
.
For
example
::
definition
,
to
ensure
that
installing
a
customi
z
ed
:
class
:`
Logger
`
class
will
not
undo
customi
z
ations
already
applied
by
other
code
.
For
example
::
class
MyLogger
(
logging
.
getLoggerClass
()):
#
...
override
behaviour
here
...
...
Lib/venv/__init__.py
View file @
56b04352
...
...
@@ -38,7 +38,7 @@ logger = logging.getLogger(__name__)
class
EnvBuilder
:
"""
This class exists to allow virtual environment creation to be
customi
s
ed. The constructor parameters determine the builder's
customi
z
ed. The constructor parameters determine the builder's
behaviour when called upon to create a virtual environment.
By default, the builder makes the system (global) site-packages dir
...
...
PC/launcher.c
View file @
56b04352
...
...
@@ -878,10 +878,10 @@ parse_shebang(wchar_t * shebang_line, int nchars, wchar_t ** command,
}
if
(
vpp
->
shebang
==
NULL
)
{
/*
* Not found in builtins - look in customi
s
ed commands.
* Not found in builtins - look in customi
z
ed commands.
*
* We can't permanently modify the shebang line in case
* it's not a customi
s
ed command, but we can temporarily
* it's not a customi
z
ed command, but we can temporarily
* stick a NUL after the command while searching for it,
* then put back the char we zapped.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment