Ñò
ÎÑAHc           @   s/   d  Z  d 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 $iÿÿÿÿNt
   FakeModulec           B   s   e  Z d  Z d 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]   d  |  _ |  i i d d „  ƒ |  i i d t ƒ |  ` | d  j	 o |  i i | ƒ n d  S(   Nt   __nonzero__c           S   s   t  S(    (   t   True(    (    (    sJ   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/FakeModule.pyt   <lambda>$   s    t   __file__(   t   Nonet   _FakeModule__iptmpt   __dict__t
   setdefaultR   t   update(   t   selft   adict(    (    sJ   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/FakeModule.pyt   __init__   s    	N(   t   __name__t
   __module__t   __doc__R   R   (    (    (    sJ   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/FakeModule.pyR       s   (   R   t   typest
   ModuleTypeR    (    (    (    sJ   /u/d/b/dbachman/web/work/lib/python2.3/site-packages/IPython/FakeModule.pyt   <module>   s   	