[issue12019] Dead or buggy code in importlib.test.__main__

Éric Araujo report at bugs.python.org
Fri May 6 18:08:27 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

I was stealing importlib’s test/__main__ file for packaging (thanks!) and I noticed this bug thanks to pyflakes: “sep” is undefined.  It looks like the bug hasn’t been noticed because it’s in a dead block that depends on __file__ containing '__pycache__'.  Is this a leftover from a previous version of the PEP without __file__/__cached__ distinction?  Or maybe __file__ is set to the pyc file for pyc-only imports?

----------
components: Tests
messages: 135314
nosy: barry, brett.cannon, eric.araujo
priority: normal
severity: normal
status: open
title: Dead or buggy code in importlib.test.__main__
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12019>
_______________________________________


More information about the Python-bugs-list mailing list