Content-Length: 265019 | pFad | https://github.com/python/cpython/commit/e349f73a5ad2856b0a7cbe4aef7cc081c7aed777

DD gh-121277: Raise nice error on `next` as second argument to deprecate… · python/cpython@e349f73 · GitHub
Skip to content

Commit e349f73

Browse files
authored
gh-121277: Raise nice error on next as second argument to deprecated-removed (GH-124623)
1 parent 6716dd1 commit e349f73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/tools/extensions/pyspecific.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ def run(self):
288288
version_deprecated = expand_version_arg(self.arguments[0],
289289
self.config.release)
290290
version_removed = self.arguments.pop(1)
291+
if version_removed == 'next':
292+
raise ValueError(
293+
'deprecated-removed:: second argument cannot be `next`')
291294
self.arguments[0] = version_deprecated, version_removed
292295

293296
# Set the label based on if we have reached the removal version

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/commit/e349f73a5ad2856b0a7cbe4aef7cc081c7aed777

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy