Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/coverage/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/coverage/__pycache__/backward.cpython-35.pyc



E�Wf�k@sdZddlZddlmZyddlmZWn"ek
rZddlmZYnXyddlZWnek
r�ddl	ZYnXy
e
ZWnek
r�e
ZYnXy
eZWnek
r�e
ZYnXyddlZWnek
rddlZYnXy
eZWnek
r+eZYnXyddlmZWn"ek
rdddlmZYnXyijWnek
r�dd�ZYn
Xdd�Zyeg�jWnek
r�d	d
�ZYn
Xdd
�Zejrdd
�Zdd�Z dd�Z!n$dd
�Zdd�Z dd�Z!yej"dZ#Wne$k
raej"dZ#YnXy"ddl%Z%ddl&Z%dZ'Wnek
r�dZ%YnXye%j(j)Z*Wn$e+k
r�ddl'Z'dZ*YnXye%j(j,Z-Wnek
re'j.�Z-YnXddd�Z/dS)z:Add things to old Pythons so I can pretend they are newer.�N)�env)�StringIO)�quotecCs
|j�S)z Produce the items from dict `d`.)�items)�d�r�D/opt/alt/python35/lib64/python3.5/site-packages/coverage/backward.py�iitemsAsr	cCs
|j�S)z Produce the items from dict `d`.)�	iteritems)rrrrr	EscCs
t|�jS)z1Get the `next` function for iterating over `seq`.)�iter�__next__)�seqrrr�iternextMsrcCs
t|�jS)z1Get the `next` function for iterating over `seq`.)r�next)r
rrrrQscCs
|jd�S)zConvert string `s` to bytes.�utf8)�encode)�srrr�to_bytesXsrcCs
t|�S)z7Produce a byte string with the ints from `byte_values`.)�bytes)�byte_valuesrrr�binary_bytes\srcCs|S)z,Turn a bytes object into a sequence of ints.r)�bytes_valuerrr�
bytes_to_ints`srcCs|S)z+Convert string `s` to bytes (no-op in 2.x).r)rrrrrfscCsdjdd�|D��S)z7Produce a byte string with the ints from `byte_values`.�css|]}t|�VqdS)N)�chr)�.0�brrr�	<genexpr>lszbinary_bytes.<locals>.<genexpr>)�join)rrrrrjsccs x|D]}t|�VqWdS)z,Turn a bytes object into a sequence of ints.N)�ord)rZbyterrrrns
Z__builtin__�builtinscCs�yddlm}Wntk
r.d}YnX|dkrE|d}|rc|||�j�}nYx%tj�D]}|ddkrpPqpWt|d��}tj||||�}WdQRX|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)�importlib.machineryr!�ImportError�load_module�imp�get_suffixes�open)�modnameZmodfiler!�modZsuff�frrr�import_local_file�s

r,)0�__doc__�sys�coverager�	cStringIOrr$�io�configparser�ConfigParser�
basestringZstring_class�	NameError�str�unicodeZ
unicode_class�cPickle�pickle�xrange�range�shlexr�shlex_quoteZpipesr
�AttributeErrorr	rrr�PY3rrr�modulesZBUILTINS�KeyError�	importlib�importlib.utilr&�util�	find_specZimportlib_util_find_spec�	Exception�MAGIC_NUMBERZPYC_MAGIC_NUMBER�	get_magicr,rrrr�<module>s�