[tor-commits] [stem/master] Fixing issues spotted by Ravi

atagar at torproject.org atagar at torproject.org
Wed Aug 22 01:12:46 UTC 2012


commit 683eeb25e812346cfd01790fe7729b686b8a2c2c
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Aug 21 18:10:30 2012 -0700

    Fixing issues spotted by Ravi
    
    Typos and whitespace issues spotted by Ravi.
---
 test/prompt.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/test/prompt.py b/test/prompt.py
index eccdbec..fad9d4e 100644
--- a/test/prompt.py
+++ b/test/prompt.py
@@ -8,10 +8,10 @@ easier.
   >>> control = controller()
   >>> control.get_info("version")
   '0.2.1.30'
-
+  
   >>> is_running()
   True
-
+  
   >>> stop()
 """
 
@@ -37,7 +37,7 @@ def print_usage():
 
 def start():
   """
-  Starts up a tor instance that we can attach a contorller to.
+  Starts up a tor instance that we can attach a controller to.
   """
   
   tor_config = {
@@ -59,10 +59,9 @@ def stop(prompt = False):
   
   if tor_pid:
     if prompt:
-      print
-      response = raw_input(STOP_CONFIRMATION)
+      response = raw_input("\n" + STOP_CONFIRMATION)
       if not response.lower() in ("y", "yes"): return
-  
+    
     os.kill(tor_pid, signal.SIGTERM)
 
 def is_running():





More information about the tor-commits mailing list