Lines Matching refs:line

410 def get_matched_defconfig(line):  argument
421 dirname = os.path.dirname(line)
423 pattern = line
425 pattern = os.path.join('configs', line)
444 for i, line in enumerate(fd):
445 line = line.strip()
446 if not line:
448 if ' ' in line:
449 line = line.split(' ')[0] # handle 'git log' input
450 matched = get_matched_defconfig(line)
453 (defconfigs_file, i + 1, line), file=sys.stderr)
494 for line in diff:
495 if line[0] == '-' and line[1] != '-':
496 print(color_text(color_enabled, COLOR_RED, line), end=' ')
497 elif line[0] == '+' and line[1] != '+':
498 print(color_text(color_enabled, COLOR_GREEN, line), end=' ')
500 print(line, end=' ')
602 for i, line in enumerate(lines):
607 if pattern.search(line):
646 for line in tolines:
647 f.write(line)
693 for i, line in enumerate(lines):
694 if line.startswith(start) and line.endswith(end):
700 old_tokens = line[len(start):-len(end)].split(',')
724 for line in tolines:
725 f.write(line)
763 def find_matching(patterns, line): argument
765 if pat.search(line):
788 for line in lines:
790 found = find_matching(patterns, line)
794 if found and re.search(r'^\s+CONFIG', line):
798 newlines.append(line)
803 def try_expand(line): argument
807 if line.find('=') == -1:
808 return line
812 cfg, val = re.split("=", line)
819 print("\tFailed to expand expression in %s" % line)
821 return line
893 for line in open(self.dotconfig):
894 m = self.re_arch.match(line)
898 m = self.re_cpu.match(line)
929 for line in autoconf_lines:
930 line = line.rstrip()
931 if line.startswith(config + '='):
932 new_val = line
939 for line in dotconfig_lines:
940 line = line.rstrip()
941 if line.startswith(config + '=') or line == not_set:
942 old_val = line
1257 for line in fd.readlines():
1258 if line.startswith('CONFIG'):
1259 config, value = line.split('=', 1)
1597 for offset, line in enumerate(data[linenum:]):
1598 if line.strip().startswith('help') or not line:
1680 for line in fd.readlines():
1681 line = line.rstrip()
1682 if not line: # Separator between defconfigs
1686 elif line[0] == ' ': # CONFIG line
1687 config, value = line.strip().split('=', 1)
1692 defconfig = line