Skip to content

Commit 495821b

Browse files
committed
dnsdist: Fix Python formatting
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
1 parent fe5eb53 commit 495821b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

regression-tests.dnsdist/dnsdisttests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ def startDNSDist(cls):
272272
else:
273273
cls.waitForTCPSocket(cls._dnsDistListeningAddr, cls._dnsDistPort)
274274

275-
consolePort = getattr(cls, '_consolePort', None)
275+
consolePort = getattr(cls, "_consolePort", None)
276276
if consolePort:
277277
cls.waitForTCPSocket(cls._dnsDistListeningAddr, consolePort)
278278

279-
webPort = getattr(cls, '_webServerPort', None)
279+
webPort = getattr(cls, "_webServerPort", None)
280280
if webPort:
281281
cls.waitForTCPSocket(cls._dnsDistListeningAddr, webPort)
282282

regression-tests.dnsdist/test_Dnstap.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,9 @@ def FrameStreamUnixListener(cls, path):
746746

747747
def handle_connection(conn):
748748
try:
749-
fstrm_handle_bidir_connection(conn, lambda data: \
750-
cls._fstrmLoggerQueue.put(data, True, timeout=2.0), exit_early=True)
749+
fstrm_handle_bidir_connection(
750+
conn, lambda data: cls._fstrmLoggerQueue.put(data, True, timeout=2.0), exit_early=True
751+
)
751752
except Exception as e:
752753
print(f"Error in handle_connection (FrameStream): {e}")
753754
finally:
@@ -1005,8 +1006,9 @@ def FrameStreamTcpListener(cls, port):
10051006

10061007
def handle_connection(conn):
10071008
try:
1008-
fstrm_handle_bidir_connection(conn, lambda data: \
1009-
cls._fstrmLoggerQueue.put(data, True, timeout=2.0), exit_early=True)
1009+
fstrm_handle_bidir_connection(
1010+
conn, lambda data: cls._fstrmLoggerQueue.put(data, True, timeout=2.0), exit_early=True
1011+
)
10101012
except Exception as e:
10111013
print(f"Error in handle_connection (FrameStream): {e}")
10121014
finally:

0 commit comments

Comments
 (0)