File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyc
Back
� zi�Uc @ s� d Z d d l Z e j d d k r� e j Z e Z e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e Z d d � Z d d � Z d � Z n� e j d d !d d g k rpe j Z e e f Z e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e Z d d � Z d d � Z d � Z n e d � � d S( s� 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. i����Ni i c C s t | t t d j � � f � S( Nt ( t isinstancet strt typet encode( t x( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyt <lambda> s c C s t | t � S( N( R t int( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR s c C s t | d � S( Nt __call__( t hasattr( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR s c C s | j S( N( t __doc__( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR s c C s t | j � � S( N( t listt keys( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR s c C s t | j � � S( N( R t items( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR s c C s | j � S( N( R ( R ( ( s= /opt/imh-python/lib/python2.7/site-packages/netaddr/compat.pyR "