summaryrefslogtreecommitdiff
path: root/sphinx/pycode/ast.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-17 22:11:14 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-18 01:58:05 +0000
commitc8f4a03daceef4470ddbc34d5879ffd01588a116 (patch)
treeb67cbca3c86b239e84e00b2ca5966e3c273ca18a /sphinx/pycode/ast.py
parent8de6638697b8c785f8022e1f526b549e74d033d1 (diff)
downloadsphinx-git-c8f4a03daceef4470ddbc34d5879ffd01588a116.tar.gz
Fix COM812
Diffstat (limited to 'sphinx/pycode/ast.py')
-rw-r--r--sphinx/pycode/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/ast.py b/sphinx/pycode/ast.py
index 702006817..58c0fc056 100644
--- a/sphinx/pycode/ast.py
+++ b/sphinx/pycode/ast.py
@@ -35,7 +35,7 @@ def parse(code: str, mode: str = 'exec') -> ast.AST:
"""Parse the *code* using the built-in ast module."""
warnings.warn(
"'sphinx.pycode.ast.parse' is deprecated, use 'ast.parse' instead.",
- RemovedInSphinx70Warning, stacklevel=2
+ RemovedInSphinx70Warning, stacklevel=2,
)
try:
return ast.parse(code, mode=mode, type_comments=True)