diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-19 20:17:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 20:17:28 -0400 |
commit | e89bd4f5e70300251314117d3664ad92c9123ade (patch) | |
tree | 7b7b4d93a91fd021105ebe8619713d96cfd8bf7c /cmd2/parsing.py | |
parent | 57dd827963491439e40eb5dfe20811c14ea757ff (diff) | |
parent | a4ff5ed890b4e53b4ae92253a302543c82aa88c3 (diff) | |
download | cmd2-git-e89bd4f5e70300251314117d3664ad92c9123ade.tar.gz |
Merge pull request #653 from python-cmd2/pyscript_fix
Pyscript fix
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 2dc698b0..2af8a207 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -372,7 +372,7 @@ class StatementParser: line = self._expand(line) # check if this line is a comment - if line.strip().startswith(constants.COMMENT_CHAR): + if line.lstrip().startswith(constants.COMMENT_CHAR): return [] # split on whitespace |