def _ps_extract_pid(self, line):
this_pid = self.regex['<STR_LIT>'].sub(r'<STR_LIT>', line)<EOL>this_parent = self.regex['<STR_LIT>'].sub(r'<STR_LIT>', line)<EOL>return this_pid, this_parent<EOL>
Extract PID and parent PID from an output line from the PS command