�
���h� � � � d dl Z e j d dk Zer!eZeZeZd� Zd� Z e
Z
eZd dlm
Z
d dlZd dlmZ n"eZeZeZd� Zd� Z eZ
d d lmZmZ e
Z
d dlZd dlmZ d d
lmZ n$# e$ r d d
lmZ n# e$ r d d
lmZ Y nw xY wY nw xY w d dlZej j! fZ"n
# e$ r dZ"Y nw xY w d dl#m$Z$ dS # e$ r G d
� d� � Z$Y dS w xY w)� N� c �D � t | � � � � � S �N)�iter�items��ds �I/opt/cloudlinux/venv/lib/python3.11/site-packages/xarray/core/pycompat.py� iteritemsr
s � ��A�G�G�I�I���� c �D � t | � � � � � S r )r �valuesr s r
�
itervaluesr
s � ��A�H�H�J�J���r )�reduce)�urlretrievec �* � | � � � S r )r r s r
r r s � ��{�{�}�}�r c �* � | � � � S r )r r s r
r r s � ��|�|�~�~�r )�izip�imap)�OrderedDict� )�suppressc �$ � e Zd ZdZd� Zd� Zd� ZdS )r aW Context 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
c � � || _ d S r )�_exceptions)�self�
exceptionss r
�__init__zsuppress.__init__E s � �)�D���r c � � d S r r )r s r
� __enter__zsuppress.__enter__H s � ��Dr c �4 � |d uot || j � � S r )�
issubclassr )r �exctype�excinst�exctbs r
�__exit__zsuppress.__exit__K s! � � �$�&�P�:�g�t�?O�+P�+P�Pr N)�__name__�
__module__�__qualname__�__doc__r r r& |