Lines Matching refs:line
202 for line in fd:
203 line = line.decode(locale.getpreferredencoding(False), errors='ignore')
208 if line.find("SPDX-License-Identifier:") < 0:
210 expr = line.split(':')[1].strip()
212 if line.strip().endswith('*/'):
215 if line.strip().endswith('-->'):
218 if line.startswith('LIST \"'):
231 col = line.find(expr) + pe.tok.lexpos
260 def __init__(self, line):
261 self.pattern = line
263 if line == '.*':
265 elif line.endswith('/'):
266 self.pattern = line[:-1]
268 elif line.startswith('/'):
269 self.pattern = line[1:]
313 for line in fd:
314 line = line.strip()
315 if line.startswith('#'):
317 if not len(line):
319 rules.append(pattern(line))