X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/d66bbe9fd8b49ee27f8c82ddc8f45eac29d4d75e..e0b57a5c8dec4bff53b80875bcedaa643e7507a1:/lib/watcher/state.py diff --git a/lib/watcher/state.py b/lib/watcher/state.py index 34630f4..3e8c463 100644 --- a/lib/watcher/state.py +++ b/lib/watcher/state.py @@ -86,7 +86,7 @@ class WatcherState(object): 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." @@ -116,7 +116,7 @@ class WatcherState(object): 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.