[tor-commits] [stem/master] Always include an empty line before the next prompt

atagar at torproject.org atagar at torproject.org
Tue May 6 01:21:13 UTC 2014


commit f2cabcdf9618af85005e830e2aa0d72a4e369a3f
Author: Damian Johnson <atagar at torproject.org>
Date:   Mon May 5 18:02:40 2014 -0700

    Always include an empty line before the next prompt
---
 stem/interpretor/commands.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/interpretor/commands.py b/stem/interpretor/commands.py
index 8e94f93..ecea859 100644
--- a/stem/interpretor/commands.py
+++ b/stem/interpretor/commands.py
@@ -225,8 +225,6 @@ class ControlInterpretor(object):
         output = self.do_help(arg)
       else:
         output = format("'%s' isn't a recognized command" % command, *ERROR_OUTPUT)
-
-      output += '\n'  # give ourselves an extra line before the next prompt
     else:
       cmd = cmd.upper()  # makes commands uppercase to match the spec
 
@@ -316,4 +314,6 @@ class ControlInterpretor(object):
           else:
             output = format(str(exc), *ERROR_OUTPUT)
 
+    output += '\n'  # give ourselves an extra line before the next prompt
+
     return output





More information about the tor-commits mailing list