003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/zmq/utils
usr
/
local
/
lib
/
python3.8
/
site-packages
/
zmq
/
utils
/
📁
..
📄
__init__.py
(0 B)
📁
__pycache__
📄
buffers.pxd
(6.87 KB)
📄
compiler.json
(310 B)
📄
config.json
(344 B)
📄
constant_names.py
(11.23 KB)
📄
garbage.py
(6.04 KB)
📄
getpid_compat.h
(116 B)
📄
interop.py
(685 B)
📄
ipcmaxlen.h
(522 B)
📄
jsonapi.py
(1018 B)
📄
monitor.py
(2.02 KB)
📄
mutex.h
(1.59 KB)
📄
pyversion_compat.h
(284 B)
📄
strtypes.py
(1.09 KB)
📄
win32.py
(5.08 KB)
📄
z85.py
(1.78 KB)
📄
zmq_compat.h
(3.17 KB)
📄
zmq_constants.h
(18.4 KB)
Editing: jsonapi.py
"""JSON serialize to/from utf8 bytes ..versionchanged:: 22.2 Remove optional imports of different JSON implementations. Now that we require recent Python, unconditionally use the standard library. Custom JSON libraries can be used via custom serialization functions. """ # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import json from typing import Any, Dict, List, Union # backward-compatibility, unused jsonmod = json def dumps(o: Any, **kwargs) -> bytes: """Serialize object to JSON bytes (utf-8). Keyword arguments are passed along to :py:func:`json.dumps`. """ return json.dumps(o, **kwargs).encode("utf8") def loads(s: Union[bytes, str], **kwargs) -> Union[Dict, List, str, int, float]: """Load object from JSON bytes (utf-8). Keyword arguments are passed along to :py:func:`json.loads`. """ if isinstance(s, bytes): s = s.decode("utf8") return json.loads(s, **kwargs) __all__ = ['dumps', 'loads']
Upload File
Create Folder