(self)
Finishes the current graph and closes the underlying file.
Finishes the current graph and closes the underlying file.
Finishes the current graph and closes the underlying file .
def close(self):
        """Finishes the current graph and closes the underlying file.
        """

        if self.fieldname is not None:
            self.finish_field()
        dbfile = self.dbfile
        here = dbfile.tell()
        dbfile.write_pickle(self.fieldroots)
        dbfile.flush()
        dbfile.seek(4 + _INT_SIZE)  # Seek past magic and version number
        dbfile.write_uint(here)
        dbfile.close()
def close ( self ) : if self . fieldname is not None : self . finish_field ( ) dbfile = self . dbfile here = dbfile . tell ( ) dbfile . write_pickle ( self . fieldroots ) dbfile . flush ( ) dbfile . seek ( 4 + _INT_SIZE ) # Seek past magic and version number dbfile . write_uint ( here ) dbfile . close ( )