Skip to content

Commit 39d5863

Browse files
committed
chore: removed unneded client protocol
1 parent d69a749 commit 39d5863

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

butter/mas/clients/client_http.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
class HttpClient(Client):
55
""" Butter MAS HTTP client API """
66

7-
def __init__(self, ip, port=3000, protocol='http'):
7+
def __init__(self, ip, port=3000):
88
"""Initialize Butter MAS HTTP client
99
1010
Args:
1111
ip (str): robot IP
1212
port (int, optional): robot port. Defaults to 3000.
13-
protocol (str, optional): communication protocol. Defaults to "http".
1413
"""
15-
super().__init__(ip, port, protocol)
14+
super().__init__(ip, port, 'http')
1615

1716

1817
if __name__ == "__main__":

butter/mas/clients/client_tcp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
class TcpClient(Client):
55
""" Butter MAS TCP client API """
66

7-
def __init__(self, ip, port=3003, protocol='tcp'):
7+
def __init__(self, ip, port=3003):
88
"""Initialize Butter MAS TCP client
99
1010
Args:
1111
ip (str): robot IP
1212
port (int, optional): robot port. Defaults to 3003.
13-
protocol (str, optional): communication protocol. Defaults to "tcp".
1413
"""
15-
super().__init__(ip, port, protocol)
14+
super().__init__(ip, port, 'tcp')
1615

1716

1817
if __name__ == "__main__":

butter/mas/clients/client_udp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
class UdpClient(Client):
55
""" Butter MAS UDP client API """
66

7-
def __init__(self, ip, port=3030, protocol='udp'):
7+
def __init__(self, ip, port=3030):
88
"""Initialize Butter MAS UDP client
99
1010
Args:
1111
ip (str): robot IP
1212
port (int, optional): robot port. Defaults to 3030.
13-
protocol (str, optional): communication protocol. Defaults to "udp".
1413
"""
15-
super().__init__(ip, port, protocol)
14+
super().__init__(ip, port, 'udp')
1615

1716

1817
if __name__ == "__main__":

0 commit comments

Comments
 (0)