update Makefile, pep8, scaling
[osm/osmclient.git] / osmclient / common / utils.py
index 8e78459..7228e5c 100644 (file)
 import time
 
 
-def wait_for_value(func, result=True, wait_time=10, catch_exception = None ):
+def wait_for_value(func, result=True, wait_time=10, catch_exception=None):
     maxtime = time.time() + wait_time
     while time.time() < maxtime:
         try:
             if func() == result:
-                return True 
-        except catch_exception as inst:
+                return True
+        except catch_exception:
             pass
         time.sleep(1)
     try:
         return func() == result
-    except catch_exception as inst:
+    except catch_exception:
         return False