fixed issue with regex matching

This commit is contained in:
cody burkard
2014-07-25 03:41:13 -07:00
parent e9d034bd31
commit a2d0ea78be
+2
View File
@@ -261,6 +261,8 @@ class Node( object ):
# Look for PID
marker = chr( 1 ) + r'\d+\r\n'
if findPid and chr( 1 ) in data:
while not re.findall( marker, data ):
data += self.read( 1024 )
markers = re.findall( marker, data )
if markers:
self.lastPid = int( markers[ 0 ][ 1: ] )