Commit 95d50adb authored by David Wilson's avatar David Wilson

unix: simplify return statements.

parent d6883375
...@@ -50,9 +50,8 @@ def is_path_dead(path): ...@@ -50,9 +50,8 @@ def is_path_dead(path):
try: try:
s.connect(path) s.connect(path)
except socket.error, e: except socket.error, e:
if e[0] in (errno.ECONNREFUSED, errno.ENOENT): return e[0] in (errno.ECONNREFUSED, errno.ENOENT)
return True return False
return False
def make_socket_path(): def make_socket_path():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment