Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable list of import names to hide from tracebacks #98

Open
dag opened this issue Apr 21, 2011 · 0 comments
Open

Configurable list of import names to hide from tracebacks #98

dag opened this issue Apr 21, 2011 · 0 comments
Labels

Comments

@dag
Copy link
Owner

dag commented Apr 21, 2011

Using something like,

dict((os.path.abspath(mod.__file__), name)
    for name, mod in sys.modules.iteritems()
    if hasattr(mod, '__file__'))

we can map files to modules, and use that to match lines in tracebacks against a 'blacklist' of module globs to hide. Use internally for traceback cleaning and maybe expose publicly if it seems useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant