Skip to content

Commit 472d277

Browse files
committed
remove extraneous variables
1 parent c8ed1d5 commit 472d277

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dhcppython/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from . import packet, options, utils
1010
from .exceptions import DHCPClientError
1111

12-
CLIENT_VER = "0.0.1"
13-
CLIENT_NAME = "DORA"
12+
1413
COL_LEN = 80
1514

1615
Lease = collections.namedtuple(
@@ -37,7 +36,6 @@ def format_dhcp_packet(pkt: packet.DHCPPacket) -> str:
3736
f"{pkt.op} / {msg_type} / {broadcast}\n"
3837
+ f"{len(pkt.asbytes)} bytes / TX ID {hex(pkt.xid).upper()} / {pkt.secs} seconds elapsed\n"
3938
+ "Client info:".ljust(client_info_padding)
40-
# + f"{pkt.htype} - {pkt.chaddr} ({vendor := utils.mac2vendor(pkt.chaddr)})"[:COL_LEN - 18] + "\n"
4139
+ client_info + "\n"
4240
+ "Client address:".ljust(client_info_padding)
4341
+ f"{pkt.ciaddr}\n"

0 commit comments

Comments
 (0)