Lines Matching full:patterns
204 The 'events' argument should be a dictionary of patterns and responses.
205 Whenever one of the patterns is seen in the command out run() will send the
223 patterns = events.keys()
226 patterns=None # We assume that EOF or TIMEOUT will save us.
232 index = child.expect (patterns)
1185 def compile_pattern_list(self, patterns):
1188 Patterns must be a StringType, EOF, TIMEOUT, SRE_Pattern, or a list of
1189 those. Patterns may also be None which results in an empty list (you
1200 efficient to compile the patterns first and then call expect_list().
1210 if patterns is None:
1212 if type(patterns) is not types.ListType:
1213 patterns = [patterns]
1219 for p in patterns:
1245 If you pass a list of patterns and more than one matches, the first match
1695 def __init__(self, patterns):
1697 """This creates an instance that searches for 'patterns' Where
1698 'patterns' may be a list or other sequence of compiled regular
1704 for n, s in zip(range(len(patterns)), patterns):