Skip to content

Commit 7b6247f

Browse files
committed
Move a comment back to where it belongs
1 parent c82aecd commit 7b6247f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cmd2/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""This simply imports certain things for backwards compatibility."""
22

3+
import argparse
34
import importlib.metadata as importlib_metadata
45
import sys
56

@@ -9,10 +10,6 @@
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-
1613
from .ansi import (
1714
Bg,
1815
Cursor,
@@ -32,6 +29,8 @@
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.
3534
cmd2_parser_module = getattr(argparse, 'cmd2_parser_module', None)
3635
if cmd2_parser_module is not None:
3736
import importlib

0 commit comments

Comments
 (0)