Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 792d9ec

Browse files
committed
MNT: remove workaround for 3.14b1
This is broken with cpython main which removed the color keyword argument to HelperFormatter in python/cpython#142274
1 parent 4b4654f commit 792d9ec

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/build/__main__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,6 @@ def main_parser() -> argparse.ArgumentParser:
331331
Construct the main parser.
332332
"""
333333
formatter_class = argparse.RawDescriptionHelpFormatter
334-
# Workaround for 3.14.0 beta 1, can remove once beta 2 is out
335-
if sys.version_info >= (3, 14):
336-
formatter_class = partial(formatter_class, color=True)
337334

338335
make_parser = partial(
339336
argparse.ArgumentParser,

0 commit comments

Comments
 (0)