def close(self):
        """Close file."""
        if self._close and self._fh:
            self._fh.close()
            self._fh = None
def close ( self ) : if self . _close and self . _fh : self . _fh . close ( ) self . _fh = None
Close file.