File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/netaddr/core.pyo
Back
� ��[Uc @ sB 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 � Z 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; /opt/imh-python/lib/python2.7/site-packages/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; /opt/imh-python/lib/python2.7/site-packages/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; /opt/imh-python/lib/python2.7/site-packages/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; /opt/imh-python/lib/python2.7/site-packages/netaddr/core.pyt num_bits7 s c C s+ d } x | r&