From a93087aecdfd5045cf274e42bbdccc00421fa71d Mon Sep 17 00:00:00 2001 From: vfbd Date: Mon, 8 Aug 2022 14:21:50 -0400 Subject: [PATCH] Fix `api_format_docstring` --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index b4ef5b29..357edaf6 100644 --- a/aiserver.py +++ b/aiserver.py @@ -428,7 +428,7 @@ def new_make_min_max_attributes(validators, min_attr, max_attr) -> dict: make_min_max_attributes.__code__ = new_make_min_max_attributes.__code__ def api_format_docstring(f): - f.__doc__ = eval('f"""{}"""'.format(f.__doc__)) + f.__doc__ = eval('f"""{}"""'.format(f.__doc__.replace("\\", "\\\\"))) return f def api_catch_out_of_memory_errors(f):