Fix for XmlToolSource.parse_command() to return None when a command element does not exist or text is empty.

This commit is contained in:
Daniel Blankenberg
2015-01-28 12:09:56 -05:00
parent 05cdaadfb9
commit bff841fa42
+1 -1
View File
@@ -79,7 +79,7 @@ class XmlToolSource(ToolSource):
def parse_command(self):
command_el = self._command_el
return (command_el is not None) and command_el.text
return ( ( command_el is not None ) and command_el.text ) or None
def parse_interpreter(self):
command_el = self._command_el