Change settings in flake8 and black.
[python_utils.git] / lockfile.py
index 38134b20d02f00f8d419b5ddfef669c5002a4abf..2d429147937d01b37a057910c50004374917af0f 100644 (file)
@@ -129,10 +129,7 @@ class LockFile(object):
         if self.locktime:
             ts = datetime.datetime.now().timestamp()
             duration = ts - self.locktime
-            if (
-                duration
-                >= config.config['lockfile_held_duration_warning_threshold_sec']
-            ):
+            if duration >= config.config['lockfile_held_duration_warning_threshold_sec']:
                 str_duration = datetime_utils.describe_duration_briefly(duration)
                 msg = f'Held {self.lockfile} for {str_duration}'
                 logger.warning(msg)