/snap/core22/2411/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc289770644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc424320644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc136700644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc706740644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc170000644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /snap/core22/2411/usr/lib/python3.10/__pycache__/fileinput.cpython-310.pyc (14072B)
o `wi:@@sdZddlZddlZddlZddlmZgdZdad%dddddd d Zd d Z d dZ ddZ ddZ ddZ ddZddZddZGdddZdddddZd&d d!Zd"d#Zed$krfedSdS)'a Helper class to quickly write a loop over all standard input files. Typical use is: import fileinput for line in fileinput.input(encoding="utf-8"): process(line) This iterates over the lines of all files listed in sys.argv[1:], defaulting to sys.stdin if the list is empty. If a filename is '-' it is also replaced by sys.stdin and the optional arguments mode and openhook are ignored. To specify an alternative list of filenames, pass it as the argument to input(). A single file name is also allowed. Functions filename(), lineno() return the filename and cumulative line number of the line that has just been read; filelineno() returns its line number in the current file; isfirstline() returns true iff the line just read is the first line of its file; isstdin() returns true iff the line was read from sys.stdin. Function nextfile() closes the current file so that the next iteration will read the first line from the next file (if any); lines not read from the file will not count towards the cumulative line count; the filename is not changed until after the first line of the next file has been read. Function close() closes the sequence. Before any lines have been read, filename() returns None and both line numbers are zero; nextfile() has no effect. After all lines have been read, filename() and the line number functions return the values pertaining to the last line read; nextfile() has no effect. All files are opened in text mode by default, you can override this by setting the mode parameter to input() or FileInput.__init__(). If an I/O error occurs during opening or reading a file, the OSError exception is raised. If sys.stdin is used more than once, the second and further use will return no lines, except perhaps for interactive use, or if it has been explicitly reset (e.g. using sys.stdin.seek(0)). Empty files are opened and immediately closed; the only time their presence in the list of filenames is noticeable at all is when the last file opened is empty. It is possible that the last line of a file doesn't end in a newline character; otherwise lines are returned including the trailing newline. Class FileInput is the implementation; its methods filename(), lineno(), fileline(), isfirstline(), isstdin(), nextfile() and close() correspond to the functions in the module. In addition it has a readline() method which returns the next input line, and a __getitem__() method which implements the sequence behavior. The sequence must be accessed in strictly sequential order; sequence access and readline() cannot be mixed. Optional in-place filtering: if the keyword argument inplace=1 is passed to input() or to the FileInput constructor, the file is moved to a backup file and standard output is directed to the input file. This makes it possible to write a filter that rewrites its input file in place. If the keyword argument backup="." is also given, it specifies the extension for the backup file, and the backup file remains around; by default, the extension is ".bak" and it is deleted when the output file is closed. In-place filtering is disabled when standard input is read. XXX The current implementation does not work for MS-DOS 8+3 filesystems. N) GenericAlias) inputclosenextfilefilenamelineno filelinenofileno isfirstlineisstdin FileInputhook_compressed hook_encodedFrmodeopenhookencodingerrorsc Cs,tr tjr tdt|||||||datS)aReturn an instance of the FileInput class, which can be iterated. The parameters are passed to the constructor of the FileInput class. The returned instance, in addition to being an iterator, keeps global state for the functions of this module,. zinput() already activer)_state_file RuntimeErrorr )filesinplacebackuprrrrr /usr/lib/python3.10/fileinput.pyrNs  rcCst}da|r |dSdS)zClose the sequence.N)rr)staterrrr]s  rcCtstdtS)a Close the current file so that the next iteration will read the first line from the next file (if any); lines not read from the file will not count towards the cumulative line count. The filename is not changed until after the first line of the next file has been read. Before the first line has been read, this function has no effect; it cannot be used to skip the first file. After the last line of the last file has been read, this function has no effect. no active input())rrrrrrrres rcCr)zr Return the name of the file currently being read. Before the first line has been read, returns None. r )rrrrrrrrsrcCr)z Return the cumulative line number of the line that has just been read. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line. r )rrrrrrrr|rcCr)z Return the line number in the current file. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line within the file. r )rrrrrrrrr"rcCr)zg Return the file number of the current file. When no file is currently opened, returns -1. r )rrr rrrrr r!r cCr)ze Returns true the line just read is the first line of its file, otherwise returns false. r )rrr rrrrr r!r cCr)z] Returns true if the last line was read from sys.stdin, otherwise returns false. r )rrr rrrrr r!r c@seZdZdZd)dddddddZd d Zd d Zd dZddZddZ ddZ ddZ ddZ ddZ ddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(ZeeZdS)*r a;FileInput([files[, inplace[, backup]]], *, mode=None, openhook=None) Class FileInput is the implementation of the module; its methods filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(), nextfile() and close() correspond to the functions of the same name in the module. In addition it has a readline() method which returns the next input line, and a __getitem__() method which implements the sequence behavior. The sequence must be accessed in strictly sequential order; random access and readline() cannot be mixed. NFrrrc CsPt|tr |f}n!t|tjrt|f}n|dur!tjdd}|s&d}nt|}||_||_ ||_ d|_ d|_ d|_ d|_d|_d|_d|_d|_||_||_tjjrld|vrl|durl|durlddl}|dtd|dvrttd d |vrddl}|d td||_d |vr|d d nd |_|r|rtdt|std||_ dS)N)-rFbz"'encoding' argument not specified.)rrUUrbz=FileInput opening mode must be one of 'r', 'rU', 'U' and 'rb'r(z'U' mode is deprecatedrwz4FileInput cannot use an opening hook in inplace modez#FileInput openhook must be callable)! isinstancestrosPathLikefspathsysargvtuple_files_inplace_backup _savestdout_output _filename _startlineno _filelinenor_isstdin_backupfilename _encoding_errorsflagswarn_default_encodingwarningswarnEncodingWarning ValueErrorDeprecationWarning_modereplace _write_modecallable _openhook) selfrrrrrrrrArrr__init__sV   zFileInput.__init__cC |dSNrrKrrr__del__ zFileInput.__del__cCsz |Wd|_dSd|_w)Nr)rr3rPrrrrs zFileInput.closecC|SrNrrPrrr __enter__zFileInput.__enter__cCrMrNrO)rKtypevalue tracebackrrr__exit__rRzFileInput.__exit__cCrSrNrrPrrr__iter__rUzFileInput.__iter__cCs4 |}|r|jd7_|S|jst|qNTr#) _readliner:r StopIterationrrKlinerrr__next__zFileInput.__next__cCsNddl}|jdtdd||krtdz|WSty&tdw)NrzTSupport for indexing FileInput objects is deprecated. Use iterator protocol instead.r&) stacklevelzaccessing lines out of orderzend of input reached)rArBrErrr`r] IndexError)rKirArrr __getitem__ s   zFileInput.__getitem__cCs|j}d|_|r |t_|j}d|_zm|r|W|j}d|_z|`Wn ty,Ynwz+|r7|js7|W|j }d|_ |rT|j sTzt |Wn t ySYnwd|_dS|j }d|_ |r{|j s{z t |Wd|_wt yzYd|_wwd|_w|j}d|_z|`Wn tyYnwz0|r|js|W|j }d|_ |r|j sz t |Wd|_wt yYd|_wwd|_w|j }d|_ |r|j sz t |Wd|_wt yYd|_wwd|_w)NF)r6r0stdoutr7rrr\AttributeErrorr;r<r5r-unlinkOSError)rK savestdoutoutputfilebackupfilenamerrrrs         zFileInput.nextfilecCs4 |}|r|jd7_|S|js|S|qr[)r\r:rrr^rrrreadline6razFileInput.readlinec CsP|js d|jvr dSdS|jd|_|jdd|_||_d|_d|_d|_d|_d|jvr6|j p4d}nd}|jdkrWd |_d|jvrOt t j d t j |_nt j |_d |_n|j rt|j|jpcd |_zt|jWn tywYnwt|j|jt|j|j||jd |_z t|jj}Wntyt|j|j||jd |_Yn;wtjtjBtjB}ttdr|tjO}t|j||}tj ||j||jd |_z t!|j|Wn tyYnwt j"|_#|jt _"n/|j$r|j dur|$|j|j|_n|j$|j|j|j |jd |_n t|j|j||jd |_|jj%|_&|&S)Nr%rrr#Flocaler$zbufferTz.bakrrO_BINARY)'r3rFr8rr9r:rr;r<r=getattrr0stdinr4r-r/r5rhrirenameopenr>fstatr st_moderHr7O_CREATO_WRONLYO_TRUNChasattrrsfdopenchmodrfr6rJrnr\)rKrpermrfdrrrr\As|                    zFileInput._readlinecC|jSrN)r8rPrrrrzFileInput.filenamecCs |j|jSrN)r9r:rPrrrrrRzFileInput.linenocCrrNr:rPrrrrrzFileInput.filelinenocCs,|jrz|jWStyYdSwdS)N)rr rDrPrrrr s  zFileInput.filenocCs |jdkS)Nr#rrPrrrr s zFileInput.isfirstlinecCrrN)r;rPrrrr rzFileInput.isstdinNFr)__name__ __module__ __qualname____doc__rLrQrrTrYrZr`rerrnr\rrrr r r classmethodr__class_getitem__rrrrr s,  4  I  r rrcCs|dur d|vr d}tj|d}|dkr!ddl}|||}n|dkr0ddl}|||}nt||||dSd|vrDtj|||d}|S)Nr%rpr#z.gzrz.bz2rr) r-pathsplitextgziprwbz2BZ2Fileio TextIOWrapper)rrrrextrstreamrrrrr sr csfdd}|S)Ncst||dS)Nrr)rw)rrrrrrrszhook_encoded..openhookr)rrrrrrrrsrcCsddl}d}d}|tjddd\}}|D]\}}|dkr!d}|dkr'|}qt|||dD]1}|d dd kr?|dd }|d dd krM|dd }td ttttrZd p[d|fq/tdtttfdS)NrFr#zib:z-iTz-b)rrr  z%d: %s[%d]%s %s*rz %d: %s[%d]) getoptr0r1rprintrrrr )rrroptsargsoar_rrr_tests    r__main__rrN)rrr0r-typesr__all__rrrrrrrr r r r r rrrrrrrs2C        {