gh-118761: improve optparse import time by delaying textwrap import · python/cpython@10cd152 · GitHub
Skip to content

Commit 10cd152

Browse files
committed
gh-118761: improve optparse import time by delaying textwrap import
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. See: #1269 See: 8110837
1 parent d05140f commit 10cd152

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)