diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-08-23 22:09:43 -0400 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-08-23 22:09:43 -0400 |
| commit | b1924fbdac9f25361a5e202c83e923d32ad1c8ea (patch) | |
| tree | d6ef8adda59bf4bc12bac1865337588fe595e8e4 /cmd2.py | |
| parent | b70c15c017219ddc4c5d3e7c9715d7bc378bd9cd (diff) | |
| download | cmd2-git-b1924fbdac9f25361a5e202c83e923d32ad1c8ea.tar.gz | |
Minor bug fix
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -972,7 +972,7 @@ class Cmd(cmd.Cmd): def pseudo_raw_input(self, prompt): """ began life as a copy of cmd's cmdloop; like raw_input but - + - accounts for changed stdin, stdout - if input is a pipe (instead of a tty), look at self.echo to decide whether to print the prompt and the input @@ -984,8 +984,7 @@ class Cmd(cmd.Cmd): if self.use_rawinput: try: if sys.stdin.isatty(): - sys.stdout.write(safe_prompt) - line = sm.input() + line = sm.input(safe_prompt) else: line = sm.input() if self.echo: |
