Tom Kuiper added the comment:

On 10/30/2012 05:29 PM, R. David Murray wrote:
> R. David Murray added the comment:
>
> Do none of those submodules import logging?
>
> It is unlikely that this is a Python bug.  Somewhere _fmt is getting set to 
> an integer.  The way to prove this one way or another is to start deleting 
> things until you find the code that is triggering the issue.
>    
After tortuous digging I found a subsubmodule that does this:

import logging
logging_options = [logging.DEBUG,
                    logging.INFO,
                    logging.WARNING,
                    logging.ERROR,
                    logging.CRITICAL]
logging_level = logging_options[2]
logging.basicConfig(format=logging_level)

Commenting out that last line fixed the problem.  I've now cleared out 
all the code shown here. Thanks for the tip.

Tom
> ----------
> nosy: +r.david.murray
> resolution:  ->  invalid
> stage:  ->  committed/rejected
> status: open ->  pending
>
> _______________________________________
> Python tracker<rep...@bugs.python.org>
> <http://bugs.python.org/issue16368>
> _______________________________________
>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16368>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to