Sindbad~EG File Manager
�
*Μg� � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ ej � Z ej � Z ej � Z
d� Zed� � Ze j d� � Z G d� dej � Zy)� N)�import_fresh_modulec � ��� t j � � t j d� | � �t j | � ��fd�� }|S )z;Decorator that ensures a function is only ever called once.Nc �B �� �5 � � cd d d � S # 1 sw Y y xY w�N� )�cached�locks ���8/usr/local/lib/python3.12/test/test_zoneinfo/_support.py�innerzcall_once.<locals>.inner s �� �
��8� �T�T�s ��)� threading�Lock� functools� lru_cache�wraps)�fr r r s @@r
� call_oncer
sH �� ��>�>��D�
&�Y�
�
��
&�q�
)�F��_�_�Q��� �� �L� c �. � ddl } t ddg�� }|| fS )u� Retrieve two copies of zoneinfo: pure Python and C accelerated.
Because this function manipulates the import system in a way that might
be fragile or do unexpected things if it is run many times, it uses a
`call_once` decorator to ensure that this is only ever called exactly
one time — in other words, when using this function you will only ever
get one copy of each module rather than a fresh import each time.
r N�zoneinfo� _zoneinfo)�blocked)r r )�c_module� py_modules r
�get_modulesr s � � �#�J��
�F�I��h��r c # � K � t � }t j j d|� }| t j d<