if hasattr(sys, 'ps1') or not sys.stderr.isatty():
sys.__excepthook__(type, value, tb)
if hasattr(sys, 'ps1') or not sys.stderr.isatty():
sys.__excepthook__(type, value, tb)
pdb.Pdb.complete = rlcompleter.Completer().complete
# Cleanup any variables that could otherwise clutter up the namespace.
pdb.Pdb.complete = rlcompleter.Completer().complete
# Cleanup any variables that could otherwise clutter up the namespace.