Skip to content

Commit 9d9e843

Browse files
committed
Fixed comment and changed Python 3 check to use six
1 parent c0cc12a commit 9d9e843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __subclasshook__(cls, C):
112112
else:
113113
from contextlib import redirect_stdout, redirect_stderr
114114

115-
if sys.version_info > (3, 0):
115+
if six.PY3:
116116
from io import StringIO # Python3
117117
else:
118118
from io import BytesIO as StringIO # Python2
@@ -3044,7 +3044,7 @@ def _print_topics(self, header, cmds, verbose):
30443044
# Now see if help_summary has been set
30453045
doc = getattr(self, self._func_named(command)).help_summary
30463046
except AttributeError:
3047-
# Last, try to directly ac cess the function's doc-string
3047+
# Last, try to directly access the function's doc-string
30483048
doc = getattr(self, self._func_named(command)).__doc__
30493049
else:
30503050
# we found the help function

0 commit comments

Comments
 (0)