hotssh r29 - in trunk: . hotssh



Author: walters
Date: Thu Jul 24 11:20:32 2008
New Revision: 29
URL: http://svn.gnome.org/viewvc/hotssh?rev=29&view=rev

Log:
Bug 544505: Ignore blank lines


Removed:
   trunk/MANIFEST.in
Modified:
   trunk/hotssh/sshwindow.py

Modified: trunk/hotssh/sshwindow.py
==============================================================================
--- trunk/hotssh/sshwindow.py	(original)
+++ trunk/hotssh/sshwindow.py	Thu Jul 24 11:20:32 2008
@@ -172,6 +172,8 @@
             return
         hosts = set()
         for line in f:
+            if not line:
+                continue
             hostip,rest = line.split(' ', 1)
             if hostip.find(',') > 0:
                 host = hostip.split(',', 1)[0]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]