|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/lib/python2.7/site-packages/netaddr/ |
Upload File : |
�
o�\c @ s9 d Z d d l Z d d l Z d d l m Z m Z e j d k Z d Z
Z d Z Z
d Z Z d e f d � � YZ d
e f d � � YZ d e f d
� � YZ y d Z e j � d � Z Wn e k
r� d � Z n Xd e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s6 Common code shared between various netaddr sub modulesi����N( t _callablet _iter_dict_keyst bigi i i t AddrFormatErrorc B s e Z d Z RS( sO
An Exception indicating a network address is not correctly formatted.
( t __name__t
__module__t __doc__( ( ( s/ /tmp/pip-install-zM1pc4/netaddr/netaddr/core.pyR s t AddrConversionErrorc B s e Z d Z RS( s^
An Exception indicating a failure to convert between address types or
notations.
( R R R ( ( ( s/ /tmp/pip-install-zM1pc4/netaddr/netaddr/core.pyR # s t NotRegisteredErrorc B s e Z d Z RS( s\
An Exception indicating that an OUI or IAB was not found in the IEEE
Registry.
( R R R ( ( ( s/ /tmp/pip-install-zM1pc4/netaddr/netaddr/core.pyR + s i* c C s
| j � S( s�
:param int_val: an unsigned integer.
:return: the minimum number of bits needed to represent value provided.
( t
bit_length( t int_val( ( s/ /tmp/pip-install-zM1pc4/netaddr/netaddr/core.pyt num_bits7 s c C s+ d } x | r&