def _sync(self):
        """Write persistent dictionary to disc."""
        _logger.debug("_sync()")
        self._lock.acquire_write()  # TODO: read access is enough?
        try:
            if self._loaded:
                self._dict.sync()
        finally:
            self._lock.release()
def _sync(self):
        
        _logger.debug("_sync()")
        self._lock.acquire_write()  
        try:
            if self._loaded:
                self._dict.sync()
        finally:
            self._lock.release()
def _sync ( self ) : _logger . debug ( "_sync()" ) self . _lock . acquire_write ( ) # TODO: read access is enough? try : if self . _loaded : self . _dict . sync ( ) finally : self . _lock . release ( )
Write persistent dictionary to disc.
Write persistent dictionary to disc .