Terry J. Reedy <[email protected]> added the comment:
The patch adds this check:
+ if not filename.endswith((".pyc", ".pyo", ".py")):
+ continue
This is not valid. A Python file is a text file with python code. In spite of
import conventions, they are not required to have any particular extension and
some people omit them from main scripts. Trace works fine with such files now
and your patch would prevent that. Python files are only identified as such by
trying to parse them.
The problem and solution lie with your setup. Arrange things so Bitten only
treats Python files as Python files.
----------
nosy: +terry.reedy
resolution: -> invalid
stage: test needed -> patch review
status: open -> closed
title: trace.py tries to get coverage data from non Python files -> 3rd party
program calls trace.py on non Python files
versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.1
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue3435>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com