mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-06 22:32:54 +02:00
formatting
This commit is contained in:
@ -504,7 +504,7 @@ def _b2a(byte_string: bytes) -> str:
|
||||
return colon_seperated
|
||||
|
||||
|
||||
def _bin_format(ip: Union[ipaddress.IPv4Address,ipaddress.IPv6Address], length: int) -> str:
|
||||
def _bin_format(ip: Union[ipaddress.IPv4Address, ipaddress.IPv6Address], length: int) -> str:
|
||||
return format(int(ip), '0>' + str(length) +'b')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user