def __init__(self, fp=None, dir=None):
        """
        fp - file pointer to read entries from
        """
        Base.__init__(self)

        if not fp:
            return

        self.entries = pickle.load(fp)
        if not isinstance(self.entries, dict):
            self.entries = {}
            raise TypeError

        if dir:
            for key, entry in self.entries.items():
                entry.convert_from_sconsign(dir, key)
def __init__ ( self , fp = None , dir = None ) : Base . __init__ ( self ) if not fp : return self . entries = pickle . load ( fp ) if not isinstance ( self . entries , dict ) : self . entries = { } raise TypeError if dir : for key , entry in self . entries . items ( ) : entry . convert_from_sconsign ( dir , key )
fp - file pointer to read entries from