STINNER Victor <victor.stin...@haypocalc.com> added the comment:

The assertion occurs in setup_context() of Python/_warnings.c, called by 
fileio_dealloc_warn(). The problem is that globals()['__file__'] is None.

Attached patch should fix this issue.

----------
keywords: +patch
nosy: +pitrou
versions: +Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22557/warn_unicode.patch

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

Reply via email to