3
���h� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ eejfe d�dd��Z
ejfee ed�d d
�Z
dd� Zd
d� Zddefdd�ZdS )zx
Helpers for configuring locale settings.
Name `localization` is chosen to avoid overlap with builtin `locale` module.
� )�contextmanagerN)�options)�lc_varc c sZ t j� }z>t j|| � t j� }tdd� |D ��r>dj|�V n| V W dt j||� X dS )aE
Context manager for temporarily setting a locale.
Parameters
----------
new_locale : str or tuple
A string of the form <language_country>.<encoding>. For example to set
the current locale to US English with a UTF8 encoding, you would pass
"en_US.UTF-8".
lc_var : int, default `locale.LC_ALL`
The category of the locale being set.
Notes
-----
This is useful when you want to run a particular block of code under a
particular locale, without globally setting the locale. This probably isn't
thread-safe.
c s s | ]}|d k V qd S )N� )�.0�xr r �=/tmp/pip-build-5_djhm0z/pandas/pandas/_config/localization.py� <genexpr>' |