Viewing File: /usr/lib/python3.6/site-packages/netaddr/__pycache__/compat.cpython-36.opt-1.pyc
3
��]~
� @ sF d Z ddlZejd dkr�ejZeZeZ dd� Z
dd� Zdd� Zdd� Z
d d� Zd
d� Zdd� Zdd� Zd
d� Zdd� Zdd� ZeZd'dd�Zd(dd�Zdd� Zn�ejdd� ddgk�r:ejZeefZeZ eZ
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zd d� Zd!d� Zd"d� ZeZd)d#d�Zd*d$d�Zd%d� Zned&��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 �/usr/lib/python3.6/compat.py�<lambda> s r c C s t | ttdj� �f�S )N� )�
isinstance�str�type�encode)r r r r r s c C s
t | t�S )N)r �int)r r r r r s c C s
t | d�S )N�__call__)�hasattr)r r r r r s c C s | j S )N)�__doc__)r r r r r s c C s t | j� �S )N)�list�keys)r r r r r s c C s t | j� �S )N)r �items)r r r r r "