diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-03 22:40:19 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-03 23:34:35 +0900 |
commit | 41b4a77dea51cf5eb16f9a3fdc27426827313d54 (patch) | |
tree | aad1d45e1e780ef69a4872d1d4122d5292fc0755 /sphinx/cmd/quickstart.py | |
parent | a5cba8cdbb9f44721885c8555bf875df1f59e199 (diff) | |
download | sphinx-git-41b4a77dea51cf5eb16f9a3fdc27426827313d54.tar.gz |
Add stacklevel parameter to warnings.warn() call
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index 8f8ae58a1..29d2e8187 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -187,7 +187,7 @@ def do_prompt(text: str, default: str = None, validator: Callable[[str], Any] = def convert_python_source(source: str, rex: Pattern = re.compile(r"[uU]('.*?')")) -> str: # remove Unicode literal prefixes warnings.warn('convert_python_source() is deprecated.', - RemovedInSphinx40Warning) + RemovedInSphinx40Warning, stacklevel=2) return rex.sub('\\1', source) |