environment/lib/python2.7/site-packages/IPython/lib/demo.py
def fload(self):
        """Load file object."""
        # read data and parse into blocks
        if hasattr(self, 'fobj') and self.fobj is not None:
           self.fobj.close()
        if hasattr(self.src, "read"):
             # It seems to be a file or a file-like object
            self.fobj = self.src
        else:
             # Assume it's a string or something that can be converted to one
            self.fobj = open(self.fname)
def fload(self):
        # read data and parse into blocks
        if hasattr(self, 'fobj') and self.fobj is not None:
           self.fobj.close()
        if hasattr(self.src, "read"):
             # It seems to be a file or a file-like object
            self.fobj = self.src
        else:
             # Assume it's a string or something that can be converted to one
            self.fobj = open(self.fname)
def fload ( self ) : # read data and parse into blocks if hasattr ( self , 'fobj' ) and self . fobj is not None : self . fobj . close ( ) if hasattr ( self . src , "read" ) : # It seems to be a file or a file-like object self . fobj = self . src else : # Assume it's a string or something that can be converted to one self . fobj = open ( self . fname )
Load file object.
Load file object .