mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-30166: Import command-line parsing modules only when needed. (#1293)
This commit is contained in:
parent
1c4670ea0c
commit
7e4db2f253
7 changed files with 20 additions and 12 deletions
|
@ -93,7 +93,6 @@ __all__ = [
|
|||
]
|
||||
|
||||
import __future__
|
||||
import argparse
|
||||
import difflib
|
||||
import inspect
|
||||
import linecache
|
||||
|
@ -2741,6 +2740,8 @@ __test__ = {"_TestClass": _TestClass,
|
|||
|
||||
|
||||
def _test():
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(description="doctest runner")
|
||||
parser.add_argument('-v', '--verbose', action='store_true', default=False,
|
||||
help='print very verbose output for all tests')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue