ok
Direktori : /proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/rhn/ |
Current File : //proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/rhn/rpclib.pyc |
� ���[c @ sW d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z m Z d d l m Z d d l Z d Z d � Z d � Z d � Z d e f d � � YZ d f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d � Z d f d � � YZ d e f d � � YZ d � Z d S( s 2.5.65-8.el7i����N( t ListTypet TupleTypet StringTypet UnicodeTypet DictTypet DictionaryType( t UserDictCasei c C s* y t j t j | � t SWn t SXd S( s5 Returns true if n is IPv6 address, false otherwise. N( t sockett inet_ptont AF_INET6t Truet False( t n( ( s. /usr/lib/python2.7/site-packages/rhn/rpclib.pyt check_ipv6$ s c C s8 | j d d � } d } d } d } d } t | � d k r� | d } | d j d d � } | d } t | � d k r� | d } q� n | d } | d d k r� t j d t d � \ } } | j d � j d � } nP t | � r� | } n; | j d d � } | d } t | � d k r(| d } n | | | | f S( s| Function used to split host information in an URL per RFC 2396 handle full hostname like user:passwd@host:port t @i i i t :t [s (?<=\]):t ]N( t splitt Nonet lent ret ip_portt lstript rstripR ( t hoststringt lt hostt portt usert passwdt hostportt userinfot arr( ( s. /usr/lib/python2.7/site-packages/rhn/rpclib.pyt split_host, s, c C sS | d k r t d � n | j d d � } t | � d k rI | d } n t | � S( Ns Host string cannot be nulls ://i i ( R t ValueErrorR R R"