(line)
| 967 | return None, [], None |
| 968 | |
| 969 | def parse_name_for_bind(line): |
| 970 | pattern = re.compile(r'bind\(\s*(?P<lang>[^,]+)(?:\s*,\s*name\s*=\s*["\'](?P<name>[^"\']+)["\']\s*)?\)', re.I) |
| 971 | match = pattern.search(line) |
| 972 | bind_statement = None |
| 973 | if match: |
| 974 | bind_statement = match.group(0) |
| 975 | # Remove the 'bind' construct from the line. |
| 976 | line = line[:match.start()] + line[match.end():] |
| 977 | return line, bind_statement |
| 978 | |
| 979 | def _resolvenameargspattern(line): |
| 980 | line, bind_cname = parse_name_for_bind(line) |
no test coverage detected