File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11"""This simply imports certain things for backwards compatibility."""
22
3+ import argparse
34import importlib .metadata as importlib_metadata
45import sys
56
910 # package is not installed
1011 pass
1112
12- # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER.
13- # Do this before loading cmd2.Cmd class so its commands use the custom parser.
14- import argparse
15-
1613from .ansi import (
1714 Bg ,
1815 Cursor ,
3229 set_default_argument_parser_type ,
3330)
3431
32+ # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER.
33+ # Do this before loading cmd2.Cmd class so its commands use the custom parser.
3534cmd2_parser_module = getattr (argparse , 'cmd2_parser_module' , None )
3635if cmd2_parser_module is not None :
3736 import importlib
You can’t perform that action at this time.
0 commit comments