This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schmir
Recipients schmir
Date 2008-06-30.05:56:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1214805400.27.0.0080322986331.issue3241@psf.upfronthosting.co.za>
In-reply-to
Content
The warnings module prints garbage when the __file__ points to a binary.
This happens e.g. when freezing applications with bbfreeze/py2exe.

It's easy to reproduce even without freezing:

~/ python                                                          
ralf@red ok
Python 2.6b1+ (trunk, Jun 30 2008, 07:26:07) 
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> __file__=sys.executable
>>> import md5
/home/ralf/py26/bin/python:1: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
 
ELF>@SA@85Q@@'$@@@@@��@@@@T�T� ��t�t$z�] (�(�t(�t��@@
 P�td�N�NS�NSDUDUQ�td/lib64/ld-linux-x86-64.so.2GNUH
                                                                         �Y���U?��=��WG.@V�����Z3�!$�5�RT&��j�>D�=i�w�RJ�0���'�f���X����5�#�U!������`q�L@�~���:���
     #  $    _
History
Date User Action Args
2008-06-30 05:56:40schmirsetrecipients: + schmir
2008-06-30 05:56:40schmirsetmessageid: <1214805400.27.0.0080322986331.issue3241@psf.upfronthosting.co.za>
2008-06-30 05:56:39schmirlinkissue3241 messages
2008-06-30 05:56:37schmircreate