Merge branch 'stable-2.16' into stable-2.17
[ganeti-github.git] / lib / utils / retry.py
index 895cc0e..6ff45e7 100644 (file)
@@ -170,7 +170,6 @@ def Retry(fn, delay, timeout, args=None, wait_fn=time.sleep,
   while True:
     retry_args = []
     try:
-      # pylint: disable=W0142
       return fn(*args)
     except RetryAgain, err:
       retry_args = err.args
@@ -181,7 +180,6 @@ def Retry(fn, delay, timeout, args=None, wait_fn=time.sleep,
     remaining_time = end_time - _time_fn()
 
     if remaining_time <= 0.0:
-      # pylint: disable=W0142
       raise RetryTimeout(*retry_args)
 
     assert remaining_time > 0.0
@@ -218,7 +216,6 @@ def SimpleRetry(expected, fn, delay, timeout, args=None, wait_fn=time.sleep,
   rdict = {}
 
   def helper(*innerargs):
-    # pylint: disable=W0142
     result = rdict["result"] = fn(*innerargs)
     if not ((callable(expected) and expected(result)) or result == expected):
       raise RetryAgain()