[Python-checkins] r45283 - python/trunk/Lib/logging/__init__.py

Neal Norwitz nnorwitz at gmail.com
Wed Apr 12 07:33:38 CEST 2006


Vinay,

Should this be backported?

n
--

On 4/11/06, vinay.sajip <python-checkins at python.org> wrote:
> Author: vinay.sajip
> Date: Tue Apr 11 23:42:00 2006
> New Revision: 45283
>
> Modified:
>    python/trunk/Lib/logging/__init__.py
> Log:
> StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).
>
> Modified: python/trunk/Lib/logging/__init__.py
> ==============================================================================
> --- python/trunk/Lib/logging/__init__.py        (original)
> +++ python/trunk/Lib/logging/__init__.py        Tue Apr 11 23:42:00 2006
> @@ -719,7 +719,7 @@
>          If strm is not specified, sys.stderr is used.
>          """
>          Handler.__init__(self)
> -        if not strm:
> +        if strm is None:
>              strm = sys.stderr
>          self.stream = strm
>          self.formatter = None
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>


More information about the Python-checkins mailing list