Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Dec 22, 2023
1 parent 5e0e636 commit be1af3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mkdocs_gallery/gen_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,7 @@ def _needs_async_handling(bcontent, src_file, *, compiler_flags) -> bool:
# mkdocs-gallery supports top-level async code similar to jupyter notebooks.
# Without handling, this will raise a SyntaxError. In such a case, we apply a
# minimal async handling and try again. If the error persists, we bubble it up
# and let the caller handle it. If the error goes away, we continue with proper
# async handling below.
# and let the caller handle it.
try:
compile(
f"async def __async_wrapper__():\n{indent(bcontent, ' ' * 4)}",
Expand Down

0 comments on commit be1af3b

Please sign in to comment.