summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-04-13 13:09:54 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-04-13 13:09:54 -0400
commit9d9e843845b57419e4be1abc65119b1d04dfa0f0 (patch)
treed83ad6f3ad3b9f32845439d476e15ae89f129482 /cmd2.py
parentc0cc12a305cb22d39717a6326d9286337837bcf5 (diff)
downloadcmd2-git-9d9e843845b57419e4be1abc65119b1d04dfa0f0.tar.gz
Fixed comment and changed Python 3 check to use six
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 356ee876..167e71c7 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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