From: Otto Moerbeek Date: Wed, 14 Jun 2023 09:12:44 +0000 (+0200) Subject: Improve python style X-Git-Tag: rec-5.0.0-alpha1~118^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b255fe8d5d42839037ca5d50be9e20541f035b6a;p=thirdparty%2Fpdns.git Improve python style Co-authored-by: Chris Hofstaedtler --- diff --git a/regression-tests.recursor-dnssec/test_RecDnstap.py b/regression-tests.recursor-dnssec/test_RecDnstap.py index 8bd2845c45..3f835a30dc 100644 --- a/regression-tests.recursor-dnssec/test_RecDnstap.py +++ b/regression-tests.recursor-dnssec/test_RecDnstap.py @@ -186,7 +186,7 @@ class TestRecursorDNSTap(RecursorTest): fstrm_handle_bidir_connection(conn, lambda data: \ param.queue.put(data, True, timeout=2.0)) except socket.error as e: - if e.errno == errno.EBADF or e.errno == errno.EPIPE: + if e.errno in (errno.EBADF, errno.EPIPE): break sys.stderr.write("Unexpected socket error %s\n" % str(e)) sys.exit(1)