gh-118761: Redudce the import time of ``optparse`` (#128899) · python/cpython@3b6a27c · GitHub
Skip to content

Commit 3b6a27c

Browse files
gh-118761: Redudce the import time of optparse (#128899)
The same change was made, and for the same reason, by ``argparse`` back in 2017. The ``textwrap`` module is only used when printing help text, so most invocations will never need it imported. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent c9c9fcb commit 3b6a27c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/optparse.py

Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)