Fixed indent
This commit is contained in:
parent
8f23c5cab7
commit
459092c2ed
@ -29,7 +29,9 @@ async def json_write(data: Any, path: Union[str, Path]) -> None:
|
|||||||
* path (`Union[str, Path]`): Path-like object or path as a string of a destination
|
* path (`Union[str, Path]`): Path-like object or path as a string of a destination
|
||||||
"""
|
"""
|
||||||
async with aiofiles.open(str(path), mode="w", encoding="utf-8") as f:
|
async with aiofiles.open(str(path), mode="w", encoding="utf-8") as f:
|
||||||
await f.write(dumps(data, ensure_ascii=False, escape_forward_slashes=False))
|
await f.write(
|
||||||
|
dumps(data, ensure_ascii=False, escape_forward_slashes=False, indent=4)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def config_get(
|
async def config_get(
|
||||||
|
Loading…
Reference in New Issue
Block a user