File: //usr/lib/python3.9/site-packages/netaddr/__pycache__/compat.cpython-39.pyc
a
��gp � @ s` d Z ddlZejd dkr�ejZeZeZ dd� Z
dd� Zdd� Zdd� Z
d d� Zd
d� Zdd� Zdd
� Zdd� Zdd� ZeZdd� Zn�ejdd� ddgk�r
ejZeefZeZ eZ
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd
� Zdd� Zdd� ZeZdd� Zned��zdd lmZ W n e�y> ddl ZY n0 e!ed!��rVd"d#� Z"nej#Z"dS )$z�
Compatibility wrappers providing uniform behaviour for Python code required to
run under both Python 2.x and 3.x.
All operations emulate 2.x behaviour where applicable.
� N� c C s
t | d�S )NzUTF-8)�bytes��x� r �2/usr/lib/python3.9/site-packages/netaddr/compat.py�<lambda> � r c C s t | ttd�� �f�S �N� )�
isinstance�str�type�encoder r r r r r c C s
t | t�S �N)r �intr r r r r r c C s
t | d�S )N�__call__)�hasattrr r r r r r c C s t | �� �S r )�list�keysr r r r r r c C s t | �� �S r )r �itemsr r r r r r c C s | � � S r �r r r r r r "