;ò
ÎÑAHc           @   s,   d  Z  d k Z d e i f d „  ƒ  YZ d S(   s¥   
Class which mimics a module.

Needed to allow pickle to correctly resolve namespaces during IPython
sessions.

$Id: FakeModule.py 2754 2007-09-09 10:16:59Z fperez $Ns
   FakeModulec           B   s   t  Z d  Z e d „ Z RS(   sn  Simple class with attribute access to fake a module.

    This is not meant to replace a module, but to allow inserting a fake
    module in sys.modules so that systems which rely on run-time module
    importing (like shelve and pickle) work correctly in interactive IPython
    sessions.

    Do NOT use this code for anything other than this IPython private hack.c         C   s]   t  |  _ |  i i d d „  ƒ |  i i d t ƒ |  ` | t  j	 o |  i i | ƒ n d  S(   Ns   __nonzero__c           C   s   t  S(   N(   s   True(    (    (    sB   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/FakeModule.pys   <lambda>$   s    s   __file__(   s   Nones   selfs   _FakeModule__iptmps   __dict__s
   setdefaults   __file__s   adicts   update(   s   selfs   adict(    (    sB   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/FakeModule.pys   __init__   s    	(   s   __name__s
   __module__s   __doc__s   Nones   __init__(    (    (    sB   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/FakeModule.pys
   FakeModule   s    (   s   __doc__s   typess
   ModuleTypes
   FakeModule(   s
   FakeModules   types(    (    sB   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/FakeModule.pys   ?   s   		