Home
last modified time | relevance | path

Searched refs:linecache (Results 1 – 25 of 75) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_linecache.py3 import linecache
11 FILENAME = linecache.__file__
63 cached_line = linecache.getline(self.file_name, index + 1)
67 lines = linecache.getlines(self.file_name)
76 linecache.getline, self.file_name, 1)
80 linecache.getlines, self.file_name)
102 getline = linecache.getline
123 empty = linecache.getlines('a/b/c/__init__.py')
130 lines = linecache.getlines(support.TESTFN)
138 linecache.getline(filename, 1)
[all …]
Dtest_traceback.py5 import linecache
895 linecache.clearcache()
896 linecache.lazycache("f", globals())
912 linecache.clearcache()
915 linecache.lazycache("f", globals())
956 linecache.clearcache()
957 linecache.updatecache('/foo.py', globals())
961 linecache.clearcache()
965 linecache.clearcache()
969 self.assertEqual({}, linecache.cache)
[all …]
/external/python/cpython2/Lib/test/
Dtest_linecache.py3 import linecache
9 FILENAME = linecache.__file__
42 getline = linecache.getline
68 empty = linecache.getlines('a/b/c/__init__.py')
75 lines = linecache.getlines(support.TESTFN)
83 linecache.getline(filename, 1)
86 cached_empty = [fn for fn in cached if fn not in linecache.cache]
90 linecache.clearcache()
91 cached_empty = [fn for fn in cached if fn in linecache.cache]
95 getline = linecache.getline
[all …]
Dtest_zipimport_support.py14 import linecache
71 linecache.clearcache()
/external/python/cpython2/Doc/library/
Dlinecache.rst2 :mod:`linecache` --- Random access to text lines
5 .. module:: linecache
9 **Source code:** :source:`Lib/linecache.py`
13 The :mod:`linecache` module allows one to get any line from any file, while
18 The :mod:`linecache` module defines the following functions:
52 >>> import linecache
53 >>> linecache.getline('/etc/passwd', 4)
/external/python/cpython3/Doc/library/
Dlinecache.rst1 :mod:`linecache` --- Random access to text lines
4 .. module:: linecache
9 **Source code:** :source:`Lib/linecache.py`
13 The :mod:`linecache` module allows one to get any line from a Python source file, while
22 The :mod:`linecache` module defines the following functions:
65 >>> import linecache
66 >>> linecache.getline(linecache.__file__, 8)
/external/python/pyfakefs/pyfakefs/pytest_tests/
Dconftest.py18 import linecache
28 Patcher.SKIPMODULES.add(linecache)
40 linecache.open = patcher.original_open
/external/python/cpython2/Lib/
Dtraceback.py3 import linecache
68 linecache.checkcache(filename)
69 line = linecache.getline(filename, lineno, f.f_globals)
100 linecache.checkcache(filename)
101 line = linecache.getline(filename, lineno, f.f_globals)
305 linecache.checkcache(filename)
306 line = linecache.getline(filename, lineno, f.f_globals)
Dbdb.py40 import linecache
41 linecache.checkcache()
254 import linecache # Import as late as possible
255 line = linecache.getline(filename, lineno)
362 import linecache, repr
382 line = linecache.getline(filename, lineno, frame.f_globals)
620 import linecache
624 line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
Dtimeit.py175 import linecache, traceback
177 linecache.cache[dummy_src_name] = (len(self.src),
Dwarnings.py6 import linecache
51 line = linecache.getline(filename, lineno) if line is None else line
273 linecache.getlines(filename, module_globals)
Dcgitb.py26 import linecache
135 try: return linecache.getline(file, lnum[0])
219 try: return linecache.getline(file, lnum[0])
/external/python/cpython3/Lib/
Dwarnings.py41 import linecache
42 line = linecache.getline(msg.filename, msg.lineno)
47 linecache = None
79 if linecache is not None:
80 line = linecache.getline(frame.filename, frame.lineno)
366 import linecache
367 linecache.getlines(filename, module_globals)
492 import linecache, traceback
495 line = linecache.getline(filename, lineno)
Dbdb.py56 import linecache
57 linecache.checkcache()
376 import linecache # Import as late as possible
377 line = linecache.getline(filename, lineno)
543 import linecache, reprlib
556 line = linecache.getline(filename, lineno, frame.f_globals)
841 import linecache
845 line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
Dtraceback.py5 import linecache
288 self._line = linecache.getline(self.filename, self.lineno).strip()
353 linecache.lazycache(filename, f.f_globals)
362 linecache.checkcache(filename)
Dcgitb.py26 import linecache
135 try: return linecache.getline(file, lnum[0])
219 try: return linecache.getline(file, lnum[0])
Dtimeit.py153 import linecache, traceback
155 linecache.cache[dummy_src_name] = (len(self.src),
/external/python/cpython3/Lib/asyncio/
Dbase_tasks.py1 import linecache
70 linecache.checkcache(filename)
71 line = linecache.getline(filename, lineno, f.f_globals)
/external/python/pyfakefs/pyfakefs/
Dpytest_plugin.py12 import linecache
28 Patcher.SKIPMODULES.add(linecache)
/external/python/cpython2/Lib/idlelib/
Drun.py2 import linecache
171 import linecache
172 linecache.checkcache()
DStackViewer.py3 import linecache
73 sourceline = linecache.getline(filename, lineno)
/external/python/cpython3/Lib/idlelib/
Dstackviewer.py1 import linecache
75 sourceline = linecache.getline(filename, lineno)
Drun.py9 import linecache
48 line = linecache.getline(filename, lineno)
214 import linecache
215 linecache.checkcache()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils.py26 import linecache
144 linecache.updatecache(obj_file, m.__dict__)
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py226 linecache = sys.modules['linecache']
230 linecache.clearcache()

123