%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_importlib.pyo |
ó Nêáac @ s² d d l Z d d l Z d d l Z d d l Z d d l Z e j d „ ƒ Z e j d „ ƒ Z d e f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k r® e ƒ n d S( iÿÿÿÿNc g s› xT | D]L } | d k r1 t d j | ƒ ƒ ‚ n y t j | =Wq t k rR q Xq Wz d VWd x0 | D]( } y t j | =Wqj t k r‘ qj Xqj WXd S( sš Uncache a module from sys.modules. A basic sanity check is performed to prevent uncaching modules that either cannot/shouldn't be uncached. t syst marshalt imps. cannot uncache {0} as it will break _importlibN( R R R ( t ValueErrort formatR t modulest KeyError( t namest name( ( s/ /usr/local/lib/python2.7/test/test_importlib.pyt uncache s c k sò i } z· x d g f d g f d g f d i f f D]U \ } } t t | ƒ | | <| | k rs | | } | | =n | } t t | | ƒ q4 Wt | ƒ r· t d j | j ƒ ƒ ƒ ‚ n d VWd x* | j ƒ D] \ } } t t | | ƒ qÍ WXd S( s, Context manager to manage the various importers and stored state in the sys module. The 'modules' attribute is not supported as the interpreter state stores a pointer to the dict that the interpreter uses internally; reassigning to sys.modules does not have the desired effect. t meta_patht patht path_hookst path_importer_caches unrecognized arguments: {0}N( t getattrR t setattrt lenR R t keyst items( t kwargst originalst attrt defaultt new_valuet value( ( s/ /usr/local/lib/python2.7/test/test_importlib.pyt import_state"