File: //opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyc
�
;�Pc           @   sv   d  d l  Z  d  d l Z d  d l Z d  d l Z e Z e Z d Z i  Z d �  Z	 d �  Z
 d �  Z d d d � Z
 d S(   i����Ns
   #._cv_partc         C   s?   |  j  } | j d � s; t j j | � } | d d } n  | S(   Ns   .pyi    (   t   __file__t   endswitht   ost   patht   splitext(   t   mt   fnamet   se(    (    sS   /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyt   pyname   s
    	c         C   s   t  j  |  � j �  S(   N(   t   md5t   digest(   t   s(    (    sS   /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyt   calc_stringsum   s    c         C   s   t  t t |  � � j �  � S(   N(   R   t   openR   t   read(   R   (    (    sS   /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyt   calc_modsum   s    c         B   s�  | d  k r! d �  } | �  } n  e |  � } | j �  } | j �  | j e � ra e e � } nS | j d e � } | d k r� e | |  d � } | | | Ud  S| e e � d } | j d | � } | | | !}	 |	 j	 �  }	 e
 j j |	 � }
 |
 d  k r[e
 rd e G|	 GHn  e |	 | | g  � e
 j |	 }
 e |
 � } | e |
 j <e | � } n9 e j |
 j � } | e |
 � k r�d } n  e | � } e s�| | k r�e
 r�d e G|	 GHn  e |
 � }
 e | |
 d � } | |
 j U| e |
 j <n  d  S(	   Nc          S   sX   y d d WnE z1 t  j �  \ }  } } | j j j } | j } Wd  ~  ~ ~ Xn X| S(   Ni   i    (   t   syst   exc_infot   tb_framet   f_backt	   f_globals(   t   typt   valt   trbt   framet   globs(    (    sS   /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyt	   get_globs   s    
s   
i����t   execi   s   %s.execfile: importingt    s   %s.execfile: reloading(   t   NoneR
   R   t   closet
   startswitht   _MAGICt   lent   findt   compilet   stripR   t   modulest   gett   _VERBOSEt   __name__t
   __import__R   t   modsumsR   t   _RELOAD_ALWAYSR   t   __dict__(   t   filenameR   t   locsR   t   filet   textt   ixt   codet   eixt   nameR   t   msumt   tsumR   (    (    sS   /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ExecfileWithModuleInfo.pyt   execfile   sJ    	
	(   R   R   t   impR	   t   TrueR'