Your IP : 216.73.216.213
B
E�Wf � @ s� d Z ddlZddlmZ yddlmZ W n ek
rH ddlmZ Y nX yddlZW n ek
rr ddl ZY nX ye
ZW n ek
r� e
ZY nX yeZW n ek
r� e
ZY nX yddlZW n ek
r� ddlZY nX yeZW n ek
�r eZY nX yddlmZ W n" ek
�r8 ddlmZ Y nX y
i j W n ek
�rb dd� ZY n
X dd� Zyeg �j W n ek
�r� d d
� ZY n
X dd
� Zej�r�dd
� Zdd� Z dd� Z!ndd
� Zdd� Z dd� Z!yej"d Z#W n e$k
�r
ej"d Z#Y nX yddl%Z%ddl&Z%dZ'W n ek
�r> dZ%Y nX ye%j(j)Z*W n" e+k
�rn ddl'Z'dZ*Y nX ye%j(j,Z-W n ek
�r� e'�.� Z-Y nX ddd�Z/dS )z:Add things to old Pythons so I can pretend they are newer.� N)�env)�StringIO)�quotec C s | � � S )z Produce the items from dict `d`.)�items)�d� r �D/opt/alt/python37/lib64/python3.7/site-packages/coverage/backward.py�iitemsA s r c C s | � � S )z Produce the items from dict `d`.)� iteritems)r r r r r E s c C s
t | �jS )z1Get the `next` function for iterating over `seq`.)�iter�__next__)�seqr r r �iternextM s r c C s
t | �jS )z1Get the `next` function for iterating over `seq`.)r �next)r
r r r r Q s c C s
| � d�S )zConvert string `s` to bytes.�utf8)�encode)�sr r r �to_bytesX s r c C s t | �S )z7Produce a byte string with the ints from `byte_values`.)�bytes)�byte_valuesr r r �binary_bytes\ s r c C s | S )z,Turn a bytes object into a sequence of ints.r )�bytes_valuer r r �
bytes_to_ints` s r c C s | S )z+Convert string `s` to bytes (no-op in 2.x).r )r r r r r f s c C s d� dd� | D ��S )z7Produce a byte string with the ints from `byte_values`.� c s s | ]}t |�V qd S )N)�chr)�.0�br r r � <genexpr>l s zbinary_bytes.<locals>.<genexpr>)�join)r r r r r j s c c s x| D ]}t |�V qW dS )z,Turn a bytes object into a sequence of ints.N)�ord)r Zbyter r r r n s
Z__builtin__�builtinsc C s� yddl m} W n tk
r( d}Y nX |dkr:| d }|rN|| |��� }nFxt�� D ]}|d dkrXP qXW t|d��}t�| |||�}W dQ R X |S )z�Import a local file as a module.
Opens a file in the current directory named `modname`.py, imports it
as `modname`, and returns the module object. `modfile` is the file to
import if it isn't in the current directory.
r )�SourceFileLoaderNz.py�r)Zimportlib.machineryr! �ImportError�load_module�impZget_suffixes�open)�modnameZmodfiler! �modZsuff�fr r r �import_local_file� s
r* )N)0�__doc__�sys�coverager Z cStringIOr r# �io�configparser�ConfigParser�
basestringZstring_class� NameError�str�unicodeZ
unicode_classZcPickle�pickleZxrange�range�shlexr Zshlex_quoteZpipesr
�AttributeErrorr r r r �PY3r r r �modulesZBUILTINS�KeyError� importlib�importlib.utilr% �util� find_specZimportlib_util_find_spec� Exception�MAGIC_NUMBERZPYC_MAGIC_NUMBERZ get_magicr* r r r r �<module> s�