Minor code refactoring

This commit is contained in:
Bernardo Damele 2010-10-31 11:17:51 +00:00
parent 6afc9bffaa
commit 3869ccebe8

View File

@ -637,11 +637,11 @@ class Agent:
retVal = None retVal = None
if inpStr: if inpStr:
regObj = getCompiledRegex("(?P<result>%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) regObj = getCompiledRegex("%s(?P<result>.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
match = regObj.search(inpStr) match = regObj.search(inpStr)
if match: if match:
retVal = match.group("result")[1:-1] retVal = match.group("result")
return retVal return retVal