summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
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