| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python313/Lib/test/test_tomllib/__pycache__/ |
Upload File : |
�
��i0 � �z � S r SSKrSSKJr SSSSSS .rS
rS\S\4S
jrS\S\4S jrS\S\4S jr S\S\4S jr
g)z8Utilities for tests that are in the "burntsushi" format.� N)�Any�bool�datetime�datetime-local�
date-local�
time-local)�booleanzoffset datetimezlocal datetimez
local datez
local timec � � [ U [ 5 ( a SU S.$ [ U [ 5 ( a S[ U 5 R 5 S.$ [ U [ 5 ( a S[ U 5 S.$ [ U [
5 ( a S[
[ U 5 5 S.$ [ U [ R 5 ( a4 [ U R 5 5 nU R ( a SUS.$ SUS.$ [ U [ R 5 ( a S[ [ U 5 5 S.$ [ U [ R 5 ( a S [ U 5 S.$ [ U [ 5 ( a U Vs/ s H n[ U5 PM sn$ [ U [ 5 ( a/ U R# 5 VVs0 s H u p4U[ U5 _M snn$ [% S
5 es snf s snnf )N�string��type�valuer �integer�floatr r r r zunsupported type)�
isinstance�strr �lower�intr �_normalize_float_strr �_normalize_datetime_str� isoformat�tzinfo�time�_normalize_localtime_str�date�list�convert�dict�items� Exception)�obj�val�i�k�vs �1C:\Python313\\Lib\test\test_tomllib\burntsushi.pyr r sz � ��#�s��� �3�/�/� �C�� � ���S����)9�:�:� �C�� � �!�C��H�5�5� �C�� � ��*>�s�3�x�*H�I�I� �C��*�*� +� +�%�c�m�m�o�6���:�:�&��5�5�(�3�7�7� �C���� '� '� �-�c�#�h�7�
�
�
�C���� '� '� ���X�
�
�
�C�� � �$'�(�C�q���
�C�(�(� �C�� � �*-�)�)�+�6�+�$�!��7�1�:�
�+�6�6�
�&�
'�'�� )��6s �*G�*Gr! �returnc �4 � [ U [ 5 ( a U Vs/ s H n[ U5 PM sn$ [ U [ 5 ( a� SU ; a� SU ; a} U S n[ R X"5 nU S nUS:X a [
U5 nO&US; a [ U5 nOUS:X a [ U5 nOUnUS:X a U Vs/ s H n[ U5 PM sn$ X5S.$ U R 5 VVs0 s H u pgU[ U5 _M snn$ [ S5 es snf s snf s snnf ) a� Normalize test objects.
This normalizes primitive values (e.g. floats), and also converts from
TOML compliance format [1] to BurntSushi format [2].
[1] https://github.com/toml-lang/compliance/blob/db7c3211fda30ff9ddb10292f4aeda7e2e10abc4/docs/json-encoding.md # noqa: E501
[2] https://github.com/BurntSushi/toml-test/blob/4634fdf3a6ecd6aaea5f4cdcd98b2733c2694993/README.md # noqa: E501
r
r r > r r r �arrayr z.Burntsushi fixtures should be dicts/lists only)r r � normalizer �_aliases�getr r r r �AssertionError)r! �item�type_� norm_typer �
norm_valuer$ r% s r&