]> kaliko git repositories - mpd-sima.git/blobdiff - sima/utils/filelock.py
Clean some linter warnings and errors
[mpd-sima.git] / sima / utils / filelock.py
index 2cb33a706991767f3d3438023f2ac086c9cf09bb..959f6362d977503718d6c6e37c3addbcba6d771b 100644 (file)
@@ -31,9 +31,10 @@ import errno
 import os
 import time
 
+
 class FileLockException(Exception):
     """FileLock Exception"""
-    pass
+
 
 class FileLock:
     """ A plain file lock whit context-manager"""
@@ -58,7 +59,7 @@ class FileLock:
         while True:
             try:
                 self.filedsc = os.open(self.lockfile,
-                                       os.O_CREAT|os.O_EXCL|os.O_RDWR)
+                                       os.O_CREAT | os.O_EXCL | os.O_RDWR)
                 break
             except OSError as err:
                 if err.errno != errno.EEXIST: