✏️ 正在编辑: core.cpython-36.pyc
路径:
/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"