From 95d50adb14dfa888174c37ab0dac82b131386c0b Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 26 Mar 2018 19:27:43 +0545 Subject: [PATCH] unix: simplify return statements. --- mitogen/unix.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mitogen/unix.py b/mitogen/unix.py index 3cfcbf1d..90b8f8bb 100644 --- a/mitogen/unix.py +++ b/mitogen/unix.py @@ -50,9 +50,8 @@ def is_path_dead(path): try: s.connect(path) except socket.error, e: - if e[0] in (errno.ECONNREFUSED, errno.ENOENT): - return True - return False + return e[0] in (errno.ECONNREFUSED, errno.ENOENT) + return False def make_socket_path():