summaryrefslogtreecommitdiffstats
path: root/Doc/howto/logging-cookbook.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-11 07:42:40 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-11 07:42:40 (GMT)
commitc9cfcf1e6cd946492be949533de906785d690069 (patch)
treef73cd5e3c77ea2b11f21b4be57020bda53cc6a6e /Doc/howto/logging-cookbook.rst
parent3300878d8c9ca454c78a7222e6b91f75cafbfa49 (diff)
parentaf8838f4430cec7ba36caf3ce419a5205451c02a (diff)
downloadcpython-c9cfcf1e6cd946492be949533de906785d690069.zip
cpython-c9cfcf1e6cd946492be949533de906785d690069.tar.gz
cpython-c9cfcf1e6cd946492be949533de906785d690069.tar.bz2
#17351: merge with 3.2.
Diffstat (limited to 'Doc/howto/logging-cookbook.rst')
-rw-r--r--Doc/howto/logging-cookbook.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 36a550e..b057f19 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -1036,7 +1036,7 @@ arbitrary object as a message format string, and that the logging package will
call ``str()`` on that object to get the actual format string. Consider the
following two classes::
- class BraceMessage(object):
+ class BraceMessage:
def __init__(self, fmt, *args, **kwargs):
self.fmt = fmt
self.args = args
@@ -1045,7 +1045,7 @@ following two classes::
def __str__(self):
return self.fmt.format(*self.args, **self.kwargs)
- class DollarMessage(object):
+ class DollarMessage:
def __init__(self, fmt, **kwargs):
self.fmt = fmt
self.kwargs = kwargs
@@ -1372,7 +1372,7 @@ works::
import random
import time
- class MyHandler(object):
+ class MyHandler:
"""
A simple handler for logging events. It runs in the listener process and
dispatches events to loggers based on the name in the received record,