Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python3.6/__pycache__/



⬆️ Go up: /lib64/python3.6

πŸ“„ Viewing: linecache.cpython-36.pyc

3


 \οΏ½οΏ½@sndZddlZddlZddlZddlZdddgZdddοΏ½ZiaddοΏ½Zddd	οΏ½Z	dd
dοΏ½Z
dddοΏ½Zd
dοΏ½ZdS)zοΏ½Cache lines from Python source files.

This is intended to read lines from modules imported -- hence if a filename
is not found, it will look down the module search path for a file by
that name.
οΏ½NοΏ½getlineοΏ½
clearcacheοΏ½
checkcachecCs:t||οΏ½}d|ko t|οΏ½knr2||dSdSdS)NοΏ½οΏ½)οΏ½getlinesοΏ½len)οΏ½filenameοΏ½linenoοΏ½module_globalsοΏ½linesοΏ½r
οΏ½!/usr/lib64/python3.6/linecache.pyrs
cCsiadS)zClear the cache entirely.N)οΏ½cacher
r
r
rrscCsR|tkr(t|}t|οΏ½dkr(t|dSy
t||οΏ½Stk
rLtοΏ½gSXdS)zοΏ½Get the lines for a Python source file from the cache.
    Update the cache if it doesn't contain an entry for this file already.rοΏ½N)rrοΏ½updatecacheοΏ½MemoryErrorr)r	rοΏ½entryr
r
rr%s
rcCsοΏ½|dkrttjοΏ½οΏ½}n|tkr&|g}ndSx~|D]v}t|}t|οΏ½dkrJq0|\}}}}|dkr`q0ytj|οΏ½}Wntk
rοΏ½t|=w0YnX||jksοΏ½||jkr0t|=q0WdS)zUDiscard cache entries that are out of date.
    (This is not checked upon each call!)Nr)	οΏ½listrοΏ½keysrοΏ½osοΏ½statοΏ½OSErrorοΏ½st_sizeοΏ½st_mtime)r	οΏ½	filenamesrοΏ½sizeοΏ½mtimerοΏ½fullnamerr
r
rr5s&
c"CsοΏ½|tkrtt|οΏ½dkrt|=|s8|jdοΏ½r<|jdοΏ½r<gS|}ytj|οΏ½}WοΏ½ntk
οΏ½rV|}t||οΏ½rοΏ½yt|dοΏ½}Wnttfk
rοΏ½Yn<X|dkrοΏ½gSt|οΏ½dddοΏ½|j	οΏ½DοΏ½|ft|<t|dStj
j|οΏ½rοΏ½gSxjtj
D]\}ytj
j
||οΏ½}Wnttfk
οΏ½r wοΏ½YnXytj|οΏ½}PWqοΏ½tk
οΏ½rHYqοΏ½XqοΏ½WgSYnXy"tj|οΏ½οΏ½}|jοΏ½}WdQRXWntk
οΏ½rοΏ½gSX|οΏ½rοΏ½|d
jd	οΏ½οΏ½rοΏ½|dd	7<|j|j}	}
|	|
||ft|<|S)zοΏ½Update a cache entry and return its list of lines.
    If something's wrong, print a message, discard the cache entry,
    and return an empty list.rοΏ½<οΏ½>rNcSsg|]}|dοΏ½qS)οΏ½
r
)οΏ½.0οΏ½liner
r
rοΏ½
<listcomp>qszupdatecache.<locals>.<listcomp>rr!οΏ½οΏ½οΏ½r%)rrοΏ½
startswithοΏ½endswithrrrοΏ½	lazycacheοΏ½ImportErrorοΏ½
splitlinesοΏ½pathοΏ½isabsοΏ½sysοΏ½joinοΏ½	TypeErrorοΏ½AttributeErrorοΏ½tokenizeοΏ½openοΏ½	readlinesrr)r	rrrοΏ½basenameοΏ½dataοΏ½dirnameοΏ½fprrrr
r
rrRsV



rcCsοΏ½|tkr tt|οΏ½dkrdSdS|s:|jdοΏ½r>|jdοΏ½r>dS|rοΏ½d|krοΏ½|jdοΏ½}|d}t|dd	οΏ½}|rοΏ½|rοΏ½tj||οΏ½}|ft|<dSdS)
aοΏ½Seed the cache for filename with module_globals.

    The module loader will be asked for the source only when getlines is
    called, not immediately.

    If there is an entry in the cache already, it is not altered.

    :return: True if a lazy load is registered in the cache,
        otherwise False. To register such a load a module loader with a
        get_source method must be found, the filename must be a cachable
        filename, and the filename must not be already cached.
    rTFrr οΏ½
__loader__οΏ½__name__οΏ½
get_sourceN)rrr&r'οΏ½getοΏ½getattrοΏ½	functoolsοΏ½partial)r	rοΏ½nameοΏ½loaderr:οΏ½	get_linesr
r
rr(οΏ½s


r()N)N)N)N)
οΏ½__doc__r=r-rr1οΏ½__all__rrrrrrr(r
r
r
rοΏ½<module>s




A


πŸ“