3
¢báWª ã @ sj d Z ddlZddlZddlZejZy
ejZW n ek
rD dZY nX dd„ Zdd„ Z dd „ Z
d
d„ ZdS )z*Generic Internet address helper functions.é Ni' c C s0 | t krtjj|ƒS | tkr(tjj|ƒS t‚dS )a* Convert the textual form of a network address into its binary form.
@param family: the address family
@type family: int
@param text: the textual address
@type text: string
@raises NotImplementedError: the address family specified is not
implemented.
@rtype: string
N)ÚAF_INETÚdnsÚipv4Ú inet_atonÚAF_INET6Úipv6ÚNotImplementedError)ÚfamilyÚtext© r ú/usr/lib/python3.6/inet.pyÚ inet_pton&