/external/python/cpython3/Lib/test/ |
H A D | test_linecache.py | 1 """ 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 D | test_traceback.py | 5 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 D | test_zipimport_support.py | 14 import linecache namespace 62 # We also clear the linecache and zipimport cache 65 linecache.clearcache()
|
/external/python/cpython2/Lib/test/ |
H A D | test_linecache.py | 1 """ 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 D | test_sundry.py | 54 import linecache namespace
|
H A D | test_zipimport_support.py | 14 import linecache namespace 68 # We also clear the linecache and zipimport cache 71 linecache.clearcache()
|
H A D | test_inspect.py | 6 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 D | base_tasks.py | 1 import linecache namespace 61 linecache.checkcache(filename) 62 line = linecache.getline(filename, lineno, f.f_globals)
|
/external/python/cpython2/Lib/ |
H A D | traceback.py | 3 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 D | bdb.py | 40 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 D | warnings.py | 6 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 D | timeit.py | 175 import linecache, traceback namespace 177 linecache.cache[dummy_src_name] = (len(self.src),
|
H A D | cgitb.py | 26 import linecache namespace 135 try: return linecache.getline(file, lnum[0]) 219 try: return linecache.getline(file, lnum[0])
|
H A D | trace.py | 51 import linecache namespace 332 source = linecache.getlines(filename) 625 linecache.getline(filename, lineno)), 638 linecache.getline(filename, lineno)),
|
/external/python/cpython3/Lib/ |
H A D | warnings.py | 42 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 D | bdb.py | 39 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 D | cgitb.py | 26 import linecache namespace 134 try: return linecache.getline(file, lnum[0]) 217 try: return linecache.getline(file, lnum[0])
|
H A D | traceback.py | 5 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 D | timeit.py | 154 import linecache, traceback namespace 156 linecache.cache[dummy_src_name] = (len(self.src),
|
/external/python/cpython2/Lib/idlelib/ |
H A D | run.py | 2 import linecache namespace 171 import linecache namespace 172 linecache.checkcache() 216 line = rpchandler.remotecall('linecache', 'getline',
|
H A D | StackViewer.py | 3 import linecache namespace 73 sourceline = linecache.getline(filename, lineno)
|
/external/python/cpython3/Lib/idlelib/ |
H A D | run.py | 2 import linecache namespace 37 line = linecache.getline(filename, lineno) 199 import linecache namespace 200 linecache.checkcache() 261 line = rpchandler.remotecall('linecache', 'getline',
|
H A D | stackviewer.py | 1 import linecache namespace 75 sourceline = linecache.getline(filename, lineno)
|
H A D | pyshell.py | 21 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 D | refleak.py | 209 linecache = sys.modules['linecache'] 213 linecache.clearcache()
|