#17351: merge with 3.3.

This commit is contained in:
Ezio Melotti 2013-03-11 09:43:25 +02:00
commit a41fb4be5b
7 changed files with 23 additions and 22 deletions

View file

@ -1034,7 +1034,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
@ -1043,7 +1043,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
@ -1370,7 +1370,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,