HOME


sh-3ll 1.0
DIR:/usr/local/lib/python3.6/site-packages/xarray/core/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/xarray/core/__pycache__/pycompat.cpython-36.pyc
3

���h�	�!@slddlZejddkZer`eZeZeZdd�Zdd�Z	e
Z
eZddlm
Z
ddlZddlmZnHeZeZeZd	d�Zd
d�Z	eZ
ddlmZmZe
Z
ddlZddlmZyddlmZWnFek
r�yddlmZWn ek
r�ddlmZYnXYnXyddlZej j!fZ"Wnek
�r0fZ"YnXydd
l#m$Z$Wn$ek
�rfGdd�d�Z$YnXdS)�N�cCst|j��S)N)�iter�items)�d�r�4/tmp/pip-build-5_djhm0z/xray/xarray/core/pycompat.py�	iteritems
srcCst|j��S)N)r�values)rrrr�
itervalues
sr
)�reduce)�urlretrievecCs|j�S)N)r)rrrrrscCs|j�S)N)r
)rrrrr
s)�izip�imap)�OrderedDict)�suppressc@s(eZdZdZdd�Zdd�Zdd�ZdS)	raWContext manager to suppress specified exceptions

        After the exception is suppressed, execution proceeds with the next
        statement following the with statement.

             with suppress(FileNotFoundError):
                 os.remove(somefile)
             # Execution still resumes here if the file was already removed
        cGs
||_dS)N)�_exceptions)�self�
exceptionsrrr�__init__Eszsuppress.__init__cCsdS)Nr)rrrr�	__enter__Hszsuppress.__enter__cCs|dk	ot||j�S)N)�
issubclassr)r�exctype�excinst�exctbrrr�__exit__Ks
zsuppress.__exit__N)�__name__�
__module__�__qualname__�__doc__rrrrrrrr:s	r)%�sys�version_info�PY3�str�
basestringZunicode_type�bytesZ
bytes_typerr
�range�zip�	functoolsr�builtins�urllib.requestr�unicode�xrange�	itertoolsr
r�map�__builtin__�urllibZ
cyordereddictr�ImportError�collectionsZordereddictZ
dask.arrayZdask�array�ArrayZdask_array_type�
contextlibrrrrr�<module>sL