Skip to content

Commit f8bc1fd

Browse files
committed
REFACT: Removed whitespace
1 parent e2ce319 commit f8bc1fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scapy/fields.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -848,24 +848,24 @@ class IPField(Field[Union[str, Net], bytes]):
848848
def __init__(self, name, default):
849849
# type: (str, Optional[str]) -> None
850850
Field.__init__(self, name, default, "4s")
851-
851+
852852
def _concat_ip(self, ip_string):
853853
"""Concat a IP str of form IP,IP,IP and returns it as bytes
854854
Backcompatible if IP is a single IP.
855855
:param ip_string: String of the IP to be packed"""
856856
ip_string = ip_string.replace(" ", "")
857-
857+
858858
# Split IPs by commas and filter out empty strings
859859
ip_list = [ip.strip() for ip in ip_string.split(',') if ip.strip()]
860-
860+
861861
# Convert each IP to packed format
862862
packed_ips = []
863863
for ip in ip_list:
864864
packed_ips.append(socket.inet_aton(ip))
865-
865+
866866
# Concatenate packed IPs into a single byte string
867867
return b''.join(packed_ips)
868-
868+
869869
def h2i(self, pkt, x, multiple=False):
870870
# type: (Optional[Packet], Union[AnyStr, List[AnyStr]]) -> Any
871871
if isinstance(x, bytes):

0 commit comments

Comments
 (0)