/usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__/ipv4.cpython-313.pyc (2719B)
j n S r SSKrSSKJr SSKrS\S\4S jrS\\\4 S\4S jr S\\\4 S\4S jr
g)
zIPv4 helper functions. N)Unionaddressreturnc ~ [ U 5 S:w a [ R R eSU S U S U S U S 4- $ )zConvert an IPv4 address in binary form to text form.
*address*, a ``bytes``, the IPv4 address in binary form.
Returns a ``str``.
z%u.%u.%u.%ur )lendns exceptionSyntaxError)r s ;/usr/lib/rads/venv/lib/python3.13/site-packages/dns/ipv4.py inet_ntoar sD 7|qmm'''GAJ
GAJ
KKK textc p [ U [ 5 ( d U R 5 nOU nUR S5 n[ U5 S:w a [
R R eU Ho nUR 5 ( d [
R R e[ U5 S: d MC US [ S5 :X d MW [
R R e U Vs/ s H n[ U5 PM nn[ R " S/UQ76 $ s snf ! [ a [
R R ef = f)zConvert an IPv4 address in text form to binary form.
*text*, a ``str`` or ``bytes``, the IPv4 address in textual form.
Returns a ``bytes``.
.r r r 0BBBB)
isinstancebytesencodesplitr r r
r isdigitordintstructpack Exception)r btextpartspartbs r inet_atonr% ' s dE""
KKE
5zQmm'''||~~--+++t9q=T!WC0--+++ (#()54SY5){{6&A&&
* (mm'''(s D D2D D %D5c z [ R R [ R R U 5 5 $ )zVerify that *address* is a valid text form IPv4 address and return its
canonical text form.
*text*, a ``str`` or ``bytes``, the IPv4 address in textual form.
Raises ``dns.exception.SyntaxError`` if the text is not valid.
)r ipv4r r% )r s r canonicalizer( C s( 88chh00677r )__doc__r typingr
dns.exceptionr r strr r% r( r r
r. sa $
Lu
L
L(E#u*% (% (8
8uS%Z(
8S
8r