Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
asn1crypto
/
__pycache__
/
File Content:
_inet.cpython-35.opt-1.pyc
�8aW� � @ s� d d l m Z m Z m Z m Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z m Z d d � Z d d � Z d S) � )�unicode_literals�division�absolute_import�print_functionN� )�unwrap)�byte_cls� bytes_to_list�str_cls� type_namec C s | t t j t j g � k rQ t t d t t j � t t j � t | � � � � t | t � s{ t t d t | � � � � | t j k r� d n d } t | � | k r� t t d | t | � � � � | t j k r� d t t | � � St j d | � } i } d } d } x� t | d � D]n \ } } | d k rz| d k r�| | } | | k rb| | | <t | | � } d } q| d k r| } qWd d � | D� } | d k r�d j | � S| | } | | } d j | d | � � d d j | | d � � S)a Windows compatiblity shim for socket.inet_ntop(). :param address_family: socket.AF_INET for IPv4 or socket.AF_INET6 for IPv6 :param packed_ip: A byte string of the network form of an IP address :return: A unicode string of the IP address zp address_family must be socket.AF_INET (%s) or socket.AF_INET6 (%s), not %s zA packed_ip must be a byte string, not %s � � zA packed_ip must be %d bytes long - is %d z%d.%d.%d.%ds !HHHHHHHHr Nr c S s&