Hacked By AnonymousFox
��Yf�. � @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d g Z Gd d � d e
� Z Gd d � d e
� Z d d d d d d
d � Z
d d d d d d d
� Z e d d � Z Gd d � d e � Z d d d � Z d d d d d � Z e d d � Z d d � Z d d d d � Z e d k r�e e j � d k rge d d e j �n e j d =e e j d � d S) aZ runpy.py - locating and running Python code using the module namespace
Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.
This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
� N)� read_code�get_importer�
run_module�run_pathc @ s: e Z d Z d Z d d � Z d d � Z d d � Z d S) �_TempModulezCTemporarily replace a module in sys.modules with an empty namespacec C s( | | _ t j | � | _ g | _ d S)N)�mod_name�types�
ModuleType�module�
_saved_module)�selfr � r
�*/opt/alt/python35/lib64/python3.5/runpy.py�__init__ s z_TempModule.__init__c C sM | j } y | j j t j | � Wn t k
r8 Yn X| j t j | <| S)N)r r �append�sys�modules�KeyErrorr
)r r r
r
r � __enter__ s
z_TempModule.__enter__c G s= | j r# | j d t j | j <n
t j | j =g | _ d S)Nr )r r r r )r �argsr
r
r �__exit__'