opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
NCSentry.cpython-312.pyc
2.58 KB
Rename
Delete
cfgv.cpython-312.pyc
20.71 KB
Rename
Delete
dicttoxml.cpython-312.pyc
18.20 KB
Rename
Delete
nodeenv.cpython-312.pyc
57.93 KB
Rename
Delete
six.cpython-312.pyc
40.35 KB
Rename
Delete
socks.cpython-312.pyc
33.33 KB
Rename
Delete
sockshandler.cpython-312.pyc
6.61 KB
Rename
Delete
typing_extensions.cpython-312.pyc
168.86 KB
Rename
Delete
xmltodict.cpython-312.pyc
20.41 KB
Rename
Delete
� "��g�: � �Z � d Z ddlmZ dZeZddlmZ ddlmZ ddlZddl Z ddlmZ e j d� Z e e dd �Zd� Zg Zd d�Zd � Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d!d�Z"d� Z#d� Z$d"d�Z%d"d�Z&d"d�Z'dddd de!d dddf d�Z(y# e $ r ddlmZ Y �}w xY w# eZY �dxY w# eZY �jxY w)#a Converts a Python dictionary or other native data type into a valid XML string. Supports item (`int`, `float`, `long`, `decimal.Decimal`, `bool`, `str`, `unicode`, `datetime`, `none` and other number-like objects) and collection (`list`, `set`, `tuple` and `dict`, as well as iterable and dict-like objects) data types, with arbitrary nesting for the collections. Items with a `datetime` type are converted to ISO format strings. Items with a `None` type become empty XML elements. This module works with both Python 2 and 3. � )�unicode_literalsz1.7.16)�randint)�IterableN)�parseString� dicttoxmlFc �2 � | rqdd l }t d|z � t j |t j �� t j dt |j j � � z � y t j t j �� y )Nr z*Debug mode is on. Events are logged at: %s)�filename�levelz Logging session starts: %s)r ) �datetime�print�logging�basicConfig�INFO�LOG�info�str�today�WARNING)�debugr r s �8/opt/hc_python/lib/python3.12/site-packages/dicttoxml.py� set_debugr , si � ��� �:�h�G�H����X�W�\�\�B����/���!�!�'�'�)�*�,� � ���'�/�/�2� c �r � t j d| �d�� t | d� S # t | � cY S xY w)z�Converts strings with non-ASCII characters to unicode for LOG. Python 3 doesn't have a `unicode()` function, so `unicode()` is an alias for `str()`, but `str()` doesn't take a second argument, hence this kludge. zInside unicode_me(). val = "�"�utf-8)r r �unicode��vals r � unicode_mer 8 s6 � � �H�H�#� 8�9���s�G�$�$����s�|��s �'