Lines Matching refs:patterns
24 expecting responses (waiting for patterns in the child's output).
214 The 'events' argument should be a dictionary of patterns and responses.
215 Whenever one of the patterns is seen in the command out run() will send the
234 patterns = list(events.keys())
238 patterns = None
244 index = child.expect(patterns)
1256 def compile_pattern_list(self, patterns):
1259 Patterns must be a StringType, EOF, TIMEOUT, SRE_Pattern, or a list of
1260 those. Patterns may also be None which results in an empty list (you
1271 efficient to compile the patterns first and then call expect_list().
1281 if patterns is None:
1283 if not isinstance(patterns, list):
1284 patterns = [patterns]
1291 for p in patterns:
1319 If you pass a list of patterns and more than one matches, the first
1678 This helper class is for speed. For more powerful regex patterns
1795 def __init__(self, patterns):
1797 """This creates an instance that searches for 'patterns' Where
1798 'patterns' may be a list or other sequence of compiled regular
1804 for n, s in zip(list(range(len(patterns))), patterns):