cleanup: TcpPing, wrong variable name
authorIustin Pop <iustin@google.com>
Sun, 14 Dec 2008 12:03:56 +0000 (12:03 +0000)
committerIustin Pop <iustin@google.com>
Sun, 14 Dec 2008 12:03:56 +0000 (12:03 +0000)
The default value of 'False' wasn't initialized properly. It doesn't
require initialization, but it's cleaner this way.

Reviewed-by: amishchenko

lib/utils.py

index 823c208..23387aa 100644 (file)
@@ -1006,7 +1006,7 @@ def TcpPing(target, port, timeout=10, live_port_needed=False, source=None):
   """
   sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 
-  sucess = False
+  success = False
 
   if source is not None:
     try: