Searched refs:source_lines (Results 1 – 13 of 13) sorted by relevance
48 source_lines = [encoding_line.encode('utf-8')]49 source_lines.append(self.source_line.encode(encoding))50 return b'\n'.join(source_lines)125 source_lines = [b"a = 42", b"b = -13", b'']126 source = line_ending.join(source_lines)
708 source_lines = m.group('source').split('\n')709 self._check_prompt_blank(source_lines, indent, name, lineno)710 self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)711 source = '\n'.join([sl[indent+4:] for sl in source_lines])721 lineno + len(source_lines))902 source_lines = None910 source_lines = None916 source_lines = linecache.getlines(file, module.__dict__)920 source_lines = linecache.getlines(file)921 if not source_lines:[all …]
704 source_lines = m.group('source').split('\n')705 self._check_prompt_blank(source_lines, indent, name, lineno)706 self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)707 source = '\n'.join([sl[indent+4:] for sl in source_lines])717 lineno + len(source_lines))901 source_lines = linecache.getlines(file, module.__dict__)905 source_lines = linecache.getlines(file)906 if not source_lines:907 source_lines = None909 source_lines = None[all …]
110 source_lines = source_text.split("\n")114 source_lines = _try_load_par_source(source_file_path)115 if source_lines is None:119 line_num_width = int(np.ceil(np.log10(len(source_lines)))) + 3120 return source_lines, line_num_width
283 source_lines, _ = source_utils.load_source(source_path)284 self.assertEqual(source_lines, [u"print('\U0001f642')", u""])304 source_lines, _ = source_utils.load_source(source_path)306 source_lines, ["import tensorflow as tf", "x = tf.constant(42.0)", ""])
375 lines[i] = reader.source_lines("localhost", "/tmp/file_%d.py" % i)378 lines[i] = reader.source_lines("localhost", "/tmp/file_%d.py" % i)
1128 def source_lines(self, host_name, file_path): member in DebugDataReader
453 reader.source_lines(_host_name, _current_file_full_path), file_lines)
169 def __init__(self, root_node, source_lines, comments_map, argument172 self._source_lines = source_lines264 source_lines = source.split('\n')265 visitor = OriginResolver(node, source_lines, comments_map,
105 def process_source_lines(source_lines, note, args): argument109 for line in source_lines:
42 self.source_lines = {}55 self.source_lines[name] = line_number(
649 source_lines, line_num_width = source_utils.load_source(681 for i, line in enumerate(source_lines):
1123 source_lines, line_num_width = source_utils.load_source(1128 for i, line in enumerate(source_lines):