mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 14:47:16 -04:00
Updated multiple Python modules (now in libs and custom_libs directories) and React libraries
This commit is contained in:
parent
9ae684240b
commit
03afeb3470
3550 changed files with 200757 additions and 117862 deletions
|
@ -10,13 +10,13 @@ from .comment import strip_comments # keep 'unused' imports
|
|||
from .encoders import TricksEncoder, json_date_time_encode, \
|
||||
class_instance_encode, json_complex_encode, json_set_encode, numeric_types_encode, numpy_encode, \
|
||||
nonumpy_encode, nopandas_encode, pandas_encode, noenum_instance_encode, \
|
||||
enum_instance_encode, pathlib_encode, bytes_encode # keep 'unused' imports
|
||||
enum_instance_encode, pathlib_encode, bytes_encode, slice_encode # keep 'unused' imports
|
||||
from .decoders import TricksPairHook, \
|
||||
json_date_time_hook, ClassInstanceHook, \
|
||||
json_complex_hook, json_set_hook, numeric_types_hook, json_numpy_obj_hook, \
|
||||
json_nonumpy_obj_hook, \
|
||||
nopandas_hook, pandas_hook, EnumInstanceHook, \
|
||||
noenum_hook, pathlib_hook, nopathlib_hook, json_bytes_hook # keep 'unused' imports
|
||||
noenum_hook, pathlib_hook, nopathlib_hook, json_bytes_hook, slice_hook # keep 'unused' imports
|
||||
|
||||
|
||||
ENCODING = 'UTF-8'
|
||||
|
@ -24,10 +24,26 @@ ENCODING = 'UTF-8'
|
|||
|
||||
_cih_instance = ClassInstanceHook()
|
||||
_eih_instance = EnumInstanceHook()
|
||||
DEFAULT_ENCODERS = [json_date_time_encode, json_complex_encode, json_set_encode,
|
||||
numeric_types_encode, class_instance_encode, bytes_encode,]
|
||||
DEFAULT_HOOKS = [json_date_time_hook, json_complex_hook, json_set_hook,
|
||||
numeric_types_hook, _cih_instance, json_bytes_hook,]
|
||||
|
||||
DEFAULT_ENCODERS = [
|
||||
json_date_time_encode,
|
||||
json_complex_encode,
|
||||
json_set_encode,
|
||||
numeric_types_encode,
|
||||
class_instance_encode,
|
||||
bytes_encode,
|
||||
slice_encode,
|
||||
]
|
||||
|
||||
DEFAULT_HOOKS = [
|
||||
json_date_time_hook,
|
||||
json_complex_hook,
|
||||
json_set_hook,
|
||||
numeric_types_hook,
|
||||
_cih_instance,
|
||||
json_bytes_hook,
|
||||
slice_hook,
|
||||
]
|
||||
|
||||
|
||||
#TODO @mark: add properties to all built-in encoders (for speed - but it should keep working without)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue