Your IP : 216.73.216.213
A��]@ � @ sS d Z d d l Z d d l Z e j d d d � d a d d � Z d d � Z d S) z�Import this module to add a hook to call pdb on uncaught exceptions.
To enable this, do the following in your top-level application:
import google.apputils.debug
and then in your main():
google.apputils.debug.Init()
Then run your program with --pdb.
� N�pdbz$Drop into pdb on uncaught exceptionsc C s� t j j s, t t d � s, t j j � r? t | | | � nE d d l } d d l } | j | | | � t j
j d � | j � d S)NZps1r �
)
�flags�FLAGSr �hasattr�sys�stderr�isatty�old_excepthook� traceback�print_exception�stdout�writeZpm)Z exc_class�value�tbr r � r �F/opt/alt/python35/lib/python3.5/site-packages/google/apputils/debug.py�
_DebugHandler) s ,r c C s"