<s> """<STR_LIT>""" <EOL> import sys <EOL> import gflags as flags <EOL> flags . DEFINE_boolean ( '<STR_LIT>' , <NUM_LIT:0> , '<STR_LIT>' ) <EOL> old_excepthook = None <EOL> def _DebugHandler ( exc_class , value , tb ) : <EOL> if not flags . FLAGS . pdb or hasattr ( sys , '<STR_LIT>' ) or not sys . stderr . isatty ( ) : <EOL> old_excepthook ( exc_class , value , tb ) <EOL> else : <EOL> import traceback <EOL> import pdb <EOL> traceback . print_exception ( exc_class , value , tb ) <EOL> sys . stdout . write ( '<STR_LIT:\n>' ) <EOL> pdb . pm ( ) <EOL> def Init ( ) : <EOL> global old_excepthook <EOL> if old_excepthook is None : <EOL> old_excepthook = sys . excepthook <EOL> sys . excepthook = _DebugHandler </s>
