From 14f53de9b746c09d1daf3b23fd50b36fefaa5732 Mon Sep 17 00:00:00 2001 From: Sebastian Majewski Date: Sun, 14 Jul 2024 00:02:14 -0500 Subject: [PATCH] Code cleanup --- examples/tcp_discard_service.py | 7 +------ examples/tcp_echo_service.py | 7 +------ examples/udp_daytime_service.py | 7 +------ examples/udp_discard_service.py | 7 +------ examples/udp_echo_service.py | 2 +- 5 files changed, 5 insertions(+), 25 deletions(-) diff --git a/examples/tcp_discard_service.py b/examples/tcp_discard_service.py index 6e40fb36..b005099e 100755 --- a/examples/tcp_discard_service.py +++ b/examples/tcp_discard_service.py @@ -52,12 +52,7 @@ class TcpDiscardService(TcpService): TCP Discard service support class. """ - def __init__( - self, - *, - local_ip_address: str, - local_port: int, - ): + def __init__(self, *, local_ip_address: str, local_port: int): """ Class constructor. """ diff --git a/examples/tcp_echo_service.py b/examples/tcp_echo_service.py index a8f45531..7e49556e 100755 --- a/examples/tcp_echo_service.py +++ b/examples/tcp_echo_service.py @@ -53,12 +53,7 @@ class TcpEchoService(TcpService): TCP Echo service support class. """ - def __init__( - self, - *, - local_ip_address: str, - local_port: int, - ): + def __init__(self, *, local_ip_address: str, local_port: int): """ Class constructor. """ diff --git a/examples/udp_daytime_service.py b/examples/udp_daytime_service.py index 0e99d1c0..3fead56c 100755 --- a/examples/udp_daytime_service.py +++ b/examples/udp_daytime_service.py @@ -53,12 +53,7 @@ class UdpDaytimeService(UdpService): UDP Echo service support class. """ - def __init__( - self, - *, - local_ip_address: str, - local_port: int, - ): + def __init__(self, *, local_ip_address: str, local_port: int): """ Class constructor. """ diff --git a/examples/udp_discard_service.py b/examples/udp_discard_service.py index caf0d921..14052b5e 100755 --- a/examples/udp_discard_service.py +++ b/examples/udp_discard_service.py @@ -52,12 +52,7 @@ class UdpDiscardService(UdpService): UDP Echo service support class. """ - def __init__( - self, - *, - local_ip_address: str, - local_port: int, - ): + def __init__(self, *, local_ip_address: str, local_port: int): """ Class constructor. """ diff --git a/examples/udp_echo_service.py b/examples/udp_echo_service.py index 34aeb3b8..ed296fc4 100755 --- a/examples/udp_echo_service.py +++ b/examples/udp_echo_service.py @@ -53,7 +53,7 @@ class UdpEchoService(UdpService): UDP Echo service support class. """ - def __init__(self, *, local_ip_address: str = "::", local_port: int = 7): + def __init__(self, *, local_ip_address: str, local_port: int): """ Class constructor. """