From eae233efe40feb05b82425d88d74d0cd72bbb1d1 Mon Sep 17 00:00:00 2001 From: Ashish Ranjan Date: Fri, 24 Oct 2014 14:48:26 +0000 Subject: [PATCH] fields in /proc/net/tcp* are not always delimited by single space --- utilities/wait_for.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/wait_for.py b/utilities/wait_for.py index 5e02712ddff..2d624282678 100644 --- a/utilities/wait_for.py +++ b/utilities/wait_for.py @@ -228,7 +228,7 @@ class LinuxTCPConnectionInfo(TCPConnectionInfo): active_connections = 0 f = open(self.source_file[self.family]) for tcp_connection in f.readlines(): - tcp_connection = tcp_connection.strip().split(' ') + tcp_connection = tcp_connection.strip().split() if tcp_connection[self.local_address_field] == 'local_address': continue if tcp_connection[self.connection_state_field] not in self.connection_states: