diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 13:09:54 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-04-13 13:09:54 -0400 |
commit | 9d9e843845b57419e4be1abc65119b1d04dfa0f0 (patch) | |
tree | d83ad6f3ad3b9f32845439d476e15ae89f129482 /cmd2.py | |
parent | c0cc12a305cb22d39717a6326d9286337837bcf5 (diff) | |
download | cmd2-git-9d9e843845b57419e4be1abc65119b1d04dfa0f0.tar.gz |
Fixed comment and changed Python 3 check to use six
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ if sys.version_info < (3, 5): else: from contextlib import redirect_stdout, redirect_stderr -if sys.version_info > (3, 0): +if six.PY3: from io import StringIO # Python3 else: from io import BytesIO as StringIO # Python2 @@ -3044,7 +3044,7 @@ Usage: Usage: unalias [-a] name [name ...] # Now see if help_summary has been set doc = getattr(self, self._func_named(command)).help_summary except AttributeError: - # Last, try to directly ac cess the function's doc-string + # Last, try to directly access the function's doc-string doc = getattr(self, self._func_named(command)).__doc__ else: # we found the help function |