Closed dmnapolitano closed 10 years ago
This second line is what evaluate_tregex_pattern()
should be returning:
matches = thrift_client.evaluate_tregex_pattern(tree, pattern)
matches = [s.strip() for m in matches for s in m.split("\n") if len(s) > 0]
Actually, maybe not...closing this for now.
Right now we're getting a
list
containing a single string of results separated by'\n'
characters.