%PDF- %PDF-
| Direktori : /proc/self/root/usr/lib/python3.6/site-packages/pyzor/hacks/__pycache__/ |
| Current File : //proc/self/root/usr/lib/python3.6/site-packages/pyzor/hacks/__pycache__/py26.cpython-36.pyc |
3
�2�^� � @ s, d Z dddgZd dd�Zdd� Zdd� ZdS )
zHacks for Python 2.6�hack_all�
hack_email�hack_selectTc C s | r
t � |rt� dS )zApply all Python 2.6 patches.N)r r )�email�select� r �/usr/lib/python3.6/py26.pyr s c C s ddl } t| d�s| j| _dS )z�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.
� N�message_from_bytes)r �hasattrZmessage_from_stringr )r r r r r s
c sT ddl } | jd dkrP| jd dkrPddl�ddl� �j�� ��fdd�}|�_dS )z�The python2.6 version of SocketServer does not handle interrupt calls
from signals. Patch the select call if necessary.
r N� � � c sN xHy�| � S t �jfk
rD } z|jd � jkr4� W Y dd}~X qX qW dS )z*restart a system call interrupted by EINTRr N)�OSError�error�argsZEINTR)r Zex)�errno�real_selectr r r �_eintr_retry$ s z!hack_select.<locals>._eintr_retry)�sys�version_infor r )r r r )r r r r r s N)TT)�__doc__�__all__r r r r r r r �<module> s