def _makePersistent(self): tmpFilename = self._filename + ".tmp" jsonWrite(self._users, open(tmpFilename, 'w')) rename(tmpFilename, self._filename) chmod(self._filename, USER_RW)
def _makePersistent(self): tmpFilename = self._filename + ".tmp" jsonWrite(self._apiKeys, open(tmpFilename, 'w')) rename(tmpFilename, self._filename)