Home
last modified time | relevance | path

Searched refs:source_lines (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_source_encoding.py48 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)
/external/python/cpython3/Lib/
Ddoctest.py708 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 = None
910 source_lines = None
916 source_lines = linecache.getlines(file, module.__dict__)
920 source_lines = linecache.getlines(file)
921 if not source_lines:
[all …]
/external/python/cpython2/Lib/
Ddoctest.py704 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 = None
909 source_lines = None
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Dsource_utils.py110 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)))) + 3
120 return source_lines, line_num_width
Dsource_utils_test.py283 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)", ""])
Ddebug_events_writer_test.py375 lines[i] = reader.source_lines("localhost", "/tmp/file_%d.py" % i)
378 lines[i] = reader.source_lines("localhost", "/tmp/file_%d.py" % i)
Ddebug_events_reader.py1128 def source_lines(self, host_name, file_path): member in DebugDataReader
Ddumping_callback_test.py453 reader.source_lines(_host_name, _current_file_full_path), file_lines)
/external/tensorflow/tensorflow/python/autograph/pyct/
Dorigin_info.py169 def __init__(self, root_node, source_lines, comments_map, argument
172 self._source_lines = source_lines
264 source_lines = source.split('\n')
265 visitor = OriginResolver(node, source_lines, comments_map,
/external/llvm-project/mlir/utils/
Dgenerate-test-checks.py105 def process_source_lines(source_lines, note, args): argument
109 for line in source_lines:
/external/llvm-project/lldb/test/API/functionalities/inline-stepping/
DTestInlineStepping.py42 self.source_lines = {}
55 self.source_lines[name] = line_number(
/external/tensorflow/tensorflow/python/debug/cli/
Dprofile_analyzer_cli.py649 source_lines, line_num_width = source_utils.load_source(
681 for i, line in enumerate(source_lines):
Danalyzer_cli.py1123 source_lines, line_num_width = source_utils.load_source(
1128 for i, line in enumerate(source_lines):