File: //lib/python2.7/site-packages/dns/_compat.pyo
�
�b�Wc @ s� d d l Z d d l Z d d l m Z e j d k rF e Z e Z n e Z e Z e j d
k r� e Z e
Z e f Z e
Z d � Z d � Z n- e Z e Z e f Z e Z d � Z d � Z d � Z d S( i����N( t Contexti c C s
| j � S( N( t decode( t x( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyt maybe_decode s c C s
| j � S( N( t encode( R ( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyt maybe_encode s c C s | S( N( ( R ( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyR s c C s | S( N( ( R ( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyR s c C sC t d t t t | � � � d t j � j t | � � } t | � S( s�
Python 2 and Python 3 use different rounding strategies in round(). This
function ensures that results are python2/3 compatible and backward
compatible with previous py2 releases
:param what: float
:return: rounded long
t prect rounding( R t lent strt longt decimalt
ROUND_HALF_UPt create_decimal( t whatt d( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyt round_py2_compat# s
( i ( i ( t sysR R t version_infot intR
t ranget xrangeR t text_typet bytest binary_typet string_typest chrt unichrR R t unicodet
basestringR ( ( ( s/ /usr/lib/python2.7/site-packages/dns/_compat.pyt <module> s*