Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ccie18643 committed Jul 14, 2024
1 parent 309c654 commit 14f53de
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
7 changes: 1 addition & 6 deletions examples/tcp_discard_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
7 changes: 1 addition & 6 deletions examples/tcp_echo_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
7 changes: 1 addition & 6 deletions examples/udp_daytime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
7 changes: 1 addition & 6 deletions examples/udp_discard_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion examples/udp_echo_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down

0 comments on commit 14f53de

Please sign in to comment.