提交 2ad37451 authored 作者: Frederic's avatar Frederic

pep8

上级 17a69f34
...@@ -24,6 +24,7 @@ AddConfigVar('compile.wait', ...@@ -24,6 +24,7 @@ AddConfigVar('compile.wait',
IntParam(5, lambda i: i > 0, allow_override=False), IntParam(5, lambda i: i > 0, allow_override=False),
in_c_key=False) in_c_key=False)
def _timeout_default(): def _timeout_default():
return config.compile.wait * 24 return config.compile.wait * 24
...@@ -131,6 +132,7 @@ def set_lock_status(use_lock): ...@@ -131,6 +132,7 @@ def set_lock_status(use_lock):
# This is because None is a valid input for timeout # This is because None is a valid input for timeout
notset = object() notset = object()
def lock(tmp_dir, timeout=notset, min_wait=None, max_wait=None, verbosity=1): def lock(tmp_dir, timeout=notset, min_wait=None, max_wait=None, verbosity=1):
""" """
Obtain lock access by creating a given temporary directory (whose base will Obtain lock access by creating a given temporary directory (whose base will
...@@ -220,7 +222,7 @@ def lock(tmp_dir, timeout=notset, min_wait=None, max_wait=None, verbosity=1): ...@@ -220,7 +222,7 @@ def lock(tmp_dir, timeout=notset, min_wait=None, max_wait=None, verbosity=1):
except OSError: except OSError:
other_dead = True other_dead = True
except AttributeError: except AttributeError:
pass #os.kill does not exist on windows pass # os.kill does not exist on windows
except Exception: except Exception:
read_owner = 'failure' read_owner = 'failure'
if other_dead: if other_dead:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论