Your IP : 216.73.217.17


Current Path : /lib/python2.7/site-packages/pyzor/hacks/
Upload File :
Current File : //lib/python2.7/site-packages/pyzor/hacks/py26.pyc

�
�}Iec@s:dZdddgZeed�Zd�Zd�ZdS(sHacks for Python 2.6thack_allt
hack_emailthack_selectcCs$|rt�n|r t�ndS(sApply all Python 2.6 patches.N(RR(temailtselect((s4/usr/lib/python2.7/site-packages/pyzor/hacks/py26.pyRs
cCs.ddl}t|d�s*|j|_ndS(s�The python2.6 version of email.message_from_string, doesn't work with
    unicode strings. And in python3 it will only work with a decoded.

    So switch to using only message_from_bytes.
    i����Ntmessage_from_bytes(Rthasattrtmessage_from_stringR(R((s4/usr/lib/python2.7/site-packages/pyzor/hacks/py26.pyRscsxddl}|jddkrt|jddkrtddl�ddl��j����fd�}|�_ndS(s�The python2.6 version of SocketServer does not handle interrupt calls
    from signals. Patch the select call if necessary.
    i����NiiiicsZxStrUy�|�SWqt�jfk
rQ}|jd�jkrR�qRqXqWdS(s*restart a system call interrupted by EINTRiN(tTruetOSErrorterrortargstEINTR(Rtex(terrnotreal_selectR(s4/usr/lib/python2.7/site-packages/pyzor/hacks/py26.pyt_eintr_retry$s	(tsystversion_infoRR(RR((RRRs4/usr/lib/python2.7/site-packages/pyzor/hacks/py26.pyRs&	N(t__doc__t__all__RRRR(((s4/usr/lib/python2.7/site-packages/pyzor/hacks/py26.pyt<module>s