Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Configurable list of import names to hide from tracebacks #98

Open
dag opened this Issue · 0 comments

1 participant

@dag
Owner

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
Something went wrong with that request. Please try again.