D | node.py | 767 def _expect(self, pattern, timeout=-1, *args, **kwargs): argument 776 return self.pexpect.expect(pattern, 0.1, *args, **kwargs) 786 def _expect_result(self, pattern, *args, **kwargs): argument 794 results = self._expect_results(pattern, *args, **kwargs) 798 def _expect_results(self, pattern, *args, **kwargs): argument 807 results = [line for line in output if self._match_pattern(line, pattern)] 811 def _match_pattern(line, pattern): argument 812 if isinstance(pattern, str): 813 pattern = re.compile(pattern) 815 if isinstance(pattern, typing.Pattern): [all …]
|