File: //proc/self/root/usr/lib/python3.6/site-packages/netaddr/__pycache__/core.cpython-36.pyc
3
��]
� @ s� d Z ddlZddlZddlmZmZ ejdkZ d Z
Zd ZZ
d ZZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZydZej� dd� ZW n ek
r� dd� ZY nX G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )z6Common code shared between various netaddr sub modules� N)� _callable�_iter_dict_keysZbig� � � c @ s e Zd ZdZdS )�AddrFormatErrorzO
An Exception indicating a network address is not correctly formatted.
N)�__name__�
__module__�__qualname__�__doc__� r r �/usr/lib/python3.6/core.pyr s r c @ s e Zd ZdZdS )�AddrConversionErrorz^
An Exception indicating a failure to convert between address types or
notations.
N)r r r
r r r r r
r # s r c @ s e Zd ZdZdS )�NotRegisteredErrorz\
An Exception indicating that an OUI or IAB was not found in the IEEE
Registry.
N)r r r
r r r r r
r + s r �* c C s | j � S )z�
:param int_val: an unsigned integer.
:return: the minimum number of bits needed to represent value provided.
)�
bit_length)�int_valr r r
�num_bits7 s r c C s"