Searched refs:linecache (Results 1 - 25 of 43) sorted by relevance

12

/external/python/cpython3/Lib/test/
H A Dtest_linecache.py1 """ Tests for the linecache module """
3 import linecache namespace
11 FILENAME = linecache.__file__
16 MODULES = "linecache abc".split()
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
[all...]
H A Dtest_traceback.py5 import linecache namespace
791 linecache.clearcache()
792 linecache.lazycache("f", globals())
806 linecache.clearcache()
809 linecache.lazycache("f", globals())
846 linecache.clearcache()
847 linecache.updatecache('/foo.py', globals())
851 linecache.clearcache()
855 linecache.clearcache()
859 self.assertEqual({}, linecache
[all...]
H A Dtest_zipimport_support.py14 import linecache namespace
62 # We also clear the linecache and zipimport cache
65 linecache.clearcache()
/external/python/cpython2/Lib/test/
H A Dtest_linecache.py1 """ Tests for the linecache module """
3 import linecache namespace
9 FILENAME = linecache.__file__
15 MODULES = "linecache abc".split()
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
[all...]
H A Dtest_sundry.py54 import linecache namespace
H A Dtest_zipimport_support.py14 import linecache namespace
68 # We also clear the linecache and zipimport cache
71 linecache.clearcache()
H A Dtest_inspect.py6 import linecache namespace
299 linecache.cache[co.co_filename] = (1, None, "None", co.co_filename)
317 '''doctest monkeypatches linecache to enable inspection'''
319 getlines = linecache.getlines
325 linecache.getlines = monkey
331 linecache.getlines = getlines
421 linecache.cache[co.co_filename] = (1, None, lines, co.co_filename)
/external/python/cpython3/Lib/asyncio/
H A Dbase_tasks.py1 import linecache namespace
61 linecache.checkcache(filename)
62 line = linecache.getline(filename, lineno, f.f_globals)
/external/python/cpython2/Lib/
H A Dtraceback.py3 import linecache namespace
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)
H A Dbdb.py40 import linecache namespace
41 linecache.checkcache()
254 import linecache # Import as late as possible namespace
255 line = linecache.getline(filename, lineno)
362 import linecache, repr namespace
382 line = linecache.getline(filename, lineno, frame.f_globals)
620 import linecache namespace
624 line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
H A Dwarnings.py6 import linecache namespace
51 line = linecache.getline(filename, lineno) if line is None else line
271 # Prime the linecache for formatting, in case the
273 linecache.getlines(filename, module_globals)
H A Dtimeit.py175 import linecache, traceback namespace
177 linecache.cache[dummy_src_name] = (len(self.src),
H A Dcgitb.py26 import linecache namespace
135 try: return linecache.getline(file, lnum[0])
219 try: return linecache.getline(file, lnum[0])
H A Dtrace.py51 import linecache namespace
332 source = linecache.getlines(filename)
625 linecache.getline(filename, lineno)),
638 linecache.getline(filename, lineno)),
/external/python/cpython3/Lib/
H A Dwarnings.py42 import linecache namespace
43 line = linecache.getline(msg.filename, msg.lineno)
45 # When a warning is logged during Python shutdown, linecache
48 linecache = None
71 if linecache is not None:
72 line = linecache.getline(frame.filename, frame.lineno)
359 # Prime the linecache for formatting, in case the
361 import linecache namespace
362 linecache.getlines(filename, module_globals)
H A Dbdb.py39 import linecache namespace
40 linecache.checkcache()
280 import linecache # Import as late as possible namespace
281 line = linecache.getline(filename, lineno)
391 import linecache, reprlib namespace
411 line = linecache.getline(filename, lineno, frame.f_globals)
650 import linecache namespace
654 line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
H A Dcgitb.py26 import linecache namespace
134 try: return linecache.getline(file, lnum[0])
217 try: return linecache.getline(file, lnum[0])
H A Dtraceback.py5 import linecache namespace
231 - :attr:`line` The text from the linecache module for the
243 :param lookup_line: If True, `linecache` is consulted for the source
248 the linecache.
282 self._line = linecache.getline(self.filename, self.lineno).strip()
345 linecache.lazycache(filename, f.f_globals)
354 linecache.checkcache(filename)
H A Dtimeit.py154 import linecache, traceback namespace
156 linecache.cache[dummy_src_name] = (len(self.src),
/external/python/cpython2/Lib/idlelib/
H A Drun.py2 import linecache namespace
171 import linecache namespace
172 linecache.checkcache()
216 line = rpchandler.remotecall('linecache', 'getline',
H A DStackViewer.py3 import linecache namespace
73 sourceline = linecache.getline(filename, lineno)
/external/python/cpython3/Lib/idlelib/
H A Drun.py2 import linecache namespace
37 line = linecache.getline(filename, lineno)
199 import linecache namespace
200 linecache.checkcache()
261 line = rpchandler.remotecall('linecache', 'getline',
H A Dstackviewer.py1 import linecache namespace
75 sourceline = linecache.getline(filename, lineno)
H A Dpyshell.py21 import linecache namespace
91 orig_checkcache=linecache.checkcache):
92 """Extend linecache.checkcache to preserve the <pyshell#...> entries
94 Rather than repeating the linecache code, patch it to save the
95 <pyshell#...> entries, call the original linecache.checkcache()
101 cache = linecache.cache
109 # Patch linecache.checkcache():
110 linecache.checkcache = extended_linecache_checkcache
451 self.rpcclt.register("linecache", linecache)
[all...]
/external/python/cpython3/Lib/test/libregrtest/
H A Drefleak.py209 linecache = sys.modules['linecache']
213 linecache.clearcache()

Completed in 433 milliseconds

12