This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 5dc072d1150d1d6c07a8a73aff99a351a285853f
Author: Tomaz Muraus <[email protected]>
AuthorDate: Tue Nov 3 16:08:24 2020 +0100

    Fix lint.
---
 libcloud/storage/drivers/local.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libcloud/storage/drivers/local.py 
b/libcloud/storage/drivers/local.py
index 96330a2..603cee4 100644
--- a/libcloud/storage/drivers/local.py
+++ b/libcloud/storage/drivers/local.py
@@ -73,7 +73,9 @@ class LockLocalStorage(object):
         end_time = start_time + lock_acquire_timeout
 
         while int(time.time()) < end_time:
+            # pylint: disable=assignment-from-no-return
             success = self.thread_lock.acquire(blocking=False)
+            # enable: disable=assignment-from-no-return
 
             if success:
                 break

Reply via email to