Try to avoid Python 3.13 cog differences

This commit is contained in:
Simon Willison 2024-03-14 19:28:04 -07:00
commit 995446bc94
2 changed files with 24 additions and 24 deletions

View file

@ -2892,7 +2892,7 @@ def _generate_convert_help():
for name in recipe_names: for name in recipe_names:
fn = getattr(recipes, name) fn = getattr(recipes, name)
help += "\n\nr.{}{}\n\n\b{}".format( help += "\n\nr.{}{}\n\n\b{}".format(
name, str(inspect.signature(fn)), fn.__doc__.rstrip() name, str(inspect.signature(fn)), textwrap.dedent(fn.__doc__.rstrip())
) )
help += "\n\n" help += "\n\n"
help += textwrap.dedent( help += textwrap.dedent(