Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcca98d

Browse files
committed
Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61058-61061 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r61058 | neal.norwitz | 2008-02-25 02:45:37 +0100 (Mon, 25 Feb 2008) | 1 line Fix indentation ........ r61059 | brett.cannon | 2008-02-25 06:33:07 +0100 (Mon, 25 Feb 2008) | 2 lines Add minor markup for a string. ........ r61060 | brett.cannon | 2008-02-25 06:33:33 +0100 (Mon, 25 Feb 2008) | 2 lines Fix a minor typo in a docstring. ........
1 parent 23daade commit dcca98d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/logging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ With the logger object configured, the following methods create log messages:
243243
little more verbose for logging messages than using the log level convenience
244244
methods listed above, but this is how to log at custom log levels.
245245

246-
:func:`getLogger` returns a reference to a logger instance with a name of name
247-
if a name is provided, or root if not. The names are period-separated
246+
:func:`getLogger` returns a reference to a logger instance with the specified
247+
if it it is provided, or ``root`` if not. The names are period-separated
248248
hierarchical structures. Multiple calls to :func:`getLogger` with the same name
249249
will return a reference to the same logger object. Loggers that are further
250250
down in the hierarchical list are children of loggers higher up in the list.
@@ -296,7 +296,7 @@ Formatters
296296
^^^^^^^^^^
297297

298298
Formatter objects configure the final order, structure, and contents of the log
299-
message. Unlike the base logging.Handler class, application code may
299+
message. Unlike the base :class:`logging.Handler` class, application code may
300300
instantiate formatter classes, although you could likely subclass the formatter
301301
if your application needs special behavior. The constructor takes two optional
302302
arguments: a message format string and a date format string. If there is no

Lib/test/test_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def requires(resource, msg=None):
105105

106106
def bind_port(sock, host='', preferred_port=54321):
107107
"""Try to bind the sock to a port. If we are running multiple
108-
tests and we don't try multiple ports, the test can fails. This
108+
tests and we don't try multiple ports, the test can fail. This
109109
makes the test more robust."""
110110

111111
# Find some random ports that hopefully no one is listening on.

Python/peephole.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
342342
if (codestr == NULL)
343343
goto exitUnchanged;
344344
codestr = (unsigned char *)memcpy(codestr,
345-
PyString_AS_STRING(code), codelen);
345+
PyString_AS_STRING(code), codelen);
346346

347347
/* Verify that RETURN_VALUE terminates the codestring. This allows
348348
the various transformation patterns to look ahead several

0 commit comments

Comments
 (0)