self._data = {}
else:
self._data = serializer.Load(state_data)
- except Exception, msg: # pylint: disable-msg=W0703
+ except Exception, msg: # pylint: disable=W0703
# Ignore errors while loading the file and treat it as empty
self._data = {}
logging.warning(("Invalid state file. Using defaults."
fd = utils.WriteFile(filename,
data=serialized_form,
prewrite=utils.LockFile, close=False)
- self.statefile = os.fdopen(fd, 'w+')
+ self.statefile = os.fdopen(fd, "w+")
def Close(self):
"""Unlock configuration file and close it.