Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/testfixtures/tests/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/testfixtures/tests/__pycache__/compat.cpython-37.pyc

B

R�X��@s�ddlZddlZddlZddlZddlZddlmZmZmZm	Z	ddl
mZej
dd�dkZej
dd�dkZej
dd�dkZe�dej�Zd	d
�ZGdd�dej�Zer�Gd
d�dej�ZnejZdS)�N)�CODEBLOCK_START�
CODEBLOCK_END�	CodeBlock�execute_code_block�)�PY2)�r)r�)r�z	^b('.*')$cCs�x�|�tt�D]v}t�|j���}t�|j|d��}trFt	�
d|�}d|}d|j|jf}t
||ddd�}|�|�t||�|_qWdS)Nz\1z&from __future__ import print_function
z%s:%d�execrT)Zfind_regionsrr�search�source�end�textwrap�dedent�py_2�
BYTE_LITERALS�sub�location�lineno�compileZclaim_regionr�parsed)ZdocumentZregionZ	start_endr
Zsource_location�code�r�J/opt/alt/python37/lib/python3.7/site-packages/testfixtures/tests/compat.py�find_code_blocks s
rc@seZdZdd�ZdS)�ManuelcCstj�|tgtg�dS)N)�manuelr�__init__rr)�selfrrrr.szManuel.__init__N)�__name__�
__module__�__qualname__rrrrrr-src@seZdZdd�ZdS)�DocTestCheckercCst�d|�}tj�||||�S)Nz\1)rr�doctest�
OutputChecker�check_output)rZwantZgotZoptionflagsrrrr&4szDocTestChecker.check_outputN)r r!r"r&rrrrr#3sr#)r$r�re�sysrZmanuel.codeblockrrrr�compatrr�version_infoZ
py_33_plusZ
py_34_plusZ
py_35_plusr�	MULTILINErrrr%r#rrrr�<module>s