environment/lib/python2.7/site-packages/IPython/utils/io.py
def close(self):
        """Close the file and restore the channel."""
        self.flush()
        setattr(sys, self.channel, self.ostream)
        self.file.close()
        self._closed = True
def close(self):
        self.flush()
        setattr(sys, self.channel, self.ostream)
        self.file.close()
        self._closed = True
def close ( self ) : self . flush ( ) setattr ( sys , self . channel , self . ostream ) self . file . close ( ) self . _closed = True
Close the file and restore the channel.
Close the file and restore the channel .