Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \–’ã0@sêdZddlZddlZddlZddlZejZddddddd d d d d ddddddddgZdd„Z dd„Z dekrôdZ dZ ddl Tyddl mZejdƒWnek rªYnXddlZyddl mZWnek rØYnXddl Z eje e ƒƒ[ nžd ek�rŠd Z d!Z ddlTyddlmZejdƒWnek �r>YnXddlZddlZeje eƒƒ[yddlmZWnek �r†YnXned"ƒ‚eejd#<dd$lmZmZmZmZmZmZmZm Z [e d%ƒ�r¼e!ƒZ"d&d'„Z#e$ƒZ%e#d(d)ƒe#d*d+ƒe#d,d-ƒe#d.d/ƒe#d0d1ƒe#d2d3ƒe#d4d5ƒe#d6d7ƒe#d8d9ƒe#d:d;ƒe#dd?ƒe#d@dAƒe#dBdCƒe#dBdDƒe#dEd1ƒe%Z&e$ƒZ%e#d(d)ƒe%Z'e$ƒZ%e#dFdGƒe#dHd+ƒe#dId-ƒe#dJdKƒe#dLdMƒe%j(eƒe#dNdOƒe#dPd1ƒe#dQd1ƒe#dRdSƒe dTƒ�r$e dUƒ�r$e#dVdTƒe%Z)e$ƒZ%e#d(d)ƒe#d,d-ƒe#d.d/ƒe#dWdXƒe#dYd+ƒe dZƒ�rte#d[d-ƒe#d2d3ƒe#d\d1ƒe#d]d/ƒe#d.d/ƒe#dEd1ƒe#d^d/ƒe%Z*[%[["[#dZ+d_Z,d`Z-d¶dcdd„Z.dedf„Z/dgdh„Z0ejdddfdhgƒd·djdk„Z1ejdkƒe2ehe&k�rFe3ehe)k�rFd¸dbddmœdndo„Z4dpdq„Z5ejdoƒye6Wne7k �rhiZ6YnXdrds„Z8dtdu„Z9dvdw„Z:dxdy„Z;dzd{„Zdºd€d„Z?dd�l@mAZAGd‚dƒ„dƒeAƒZByeCZDWne7k �rd„d…„ZDYnXd†ek�rejd†ƒyeEZFWne7k �rBd‡d…„ZFYnXdˆek�rXejdˆƒd‰dŠ„ZGeGƒZ6[Gd»d‹dŒ„ZHe d kZIejd¼ƒeI�r¾dŽd�„ZJeBe6jKeJeLeJeLeDeFƒZM[Jd½d�d‘„ZNejd¾ƒd“d”„ZOeOƒ\ZPZQ[Oe d•ƒ�rHe d–ƒ �rHe d—ƒ�rHdZRd_ZSZTejd˜d™dšgƒd›dœ„ZUd�d–„ZVdždŸ„ZWd d¡„ZXd¢d£„ZYejd–dŸd¡d£gƒe d–ƒ�rpd¤d¥„ZZd¦d§„Z[ejd¥d§gƒe d¡ƒ�r˜d¨d©„Z\dªd«„Z]ejd©d«gƒdÀd­d„Z^Gd®d¯„d¯ƒZ_d°d„Z`d±d²„Zae d³ƒ�sÔeaZbd³eb_cGd´dµ„dµejdƒZedS)ÁaNOS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix or nt, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - os.name is either 'posix' or 'nt' - os.curdir is a string representing the current directory (always '.') - os.pardir is a string representing the parent directory (always '..') - os.sep is the (or a most common) pathname separator ('/' or '\\') - os.extsep is the extension separator (always '.') - os.altsep is the alternate pathname separator (None or '/') - os.pathsep is the component separator used in $PATH etc - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n') - os.defpath is the default search path for executables - os.devnull is the file path of the null device ('/dev/null', etc.) Programs that import and use 'os' stand a better chance of being portable between different platforms. Of course, they must then only use functions that are defined by all platforms (e.g., unlink and opendir), and leave all pathname manipulation to os.path (e.g., split and join). éNÚaltsepÚcurdirÚpardirÚsepÚpathsepÚlinesepÚdefpathÚnameÚpathÚdevnullÚSEEK_SETÚSEEK_CURÚSEEK_ENDÚfsencodeÚfsdecodeÚ get_exec_pathÚfdopenÚpopenÚextsepcCs |tƒkS)N)Úglobals)r ©rú/usr/lib64/python3.6/os.pyÚ_exists%src Cs2y t|jƒStk r,dd„t|ƒDƒSXdS)NcSsg|]}|ddkr|‘qS)rÚ_r)Ú.0Únrrrú ,sz%_get_exports_list..)ÚlistÚ__all__ÚAttributeErrorÚdir)ÚmodulerrrÚ_get_exports_list(s r"ÚposixÚ )Ú*)Ú_exitr&)Ú_have_functionsÚntz zno os specific module foundzos.path)rrrrrrrr r'cCs"|tkr|tkrtjt|ƒdS)N)Ú_globalsr'Ú_setÚadd)ÚstrÚfnrrrÚ_adddsr.ÚHAVE_FACCESSATÚaccessÚ HAVE_FCHMODATÚchmodÚ HAVE_FCHOWNATÚchownÚ HAVE_FSTATATÚstatÚHAVE_FUTIMESATÚutimeÚ HAVE_LINKATÚlinkÚ HAVE_MKDIRATÚmkdirÚ HAVE_MKFIFOATÚmkfifoÚ HAVE_MKNODATÚmknodÚ HAVE_OPENATÚopenÚHAVE_READLINKATÚreadlinkÚ HAVE_RENAMEATÚrenameÚHAVE_SYMLINKATÚsymlinkÚ HAVE_UNLINKATÚunlinkÚrmdirÚHAVE_UTIMENSATÚ HAVE_FCHDIRÚchdirÚ HAVE_FCHMODÚ HAVE_FCHOWNÚHAVE_FDOPENDIRÚlistdirÚ HAVE_FEXECVEÚexecveÚHAVE_FTRUNCATEÚtruncateÚ HAVE_FUTIMENSÚ HAVE_FUTIMESÚHAVE_FPATHCONFÚpathconfÚstatvfsÚfstatvfsÚ HAVE_FSTATVFSÚ HAVE_LCHFLAGSZchflagsÚ HAVE_LCHMODÚlchownÚ HAVE_LCHOWNÚ HAVE_LUTIMESÚ HAVE_LSTATZ MS_WINDOWSéééÿFcCsºtj|ƒ\}}|s tj|ƒ\}}|r~|r~tj|ƒ r~yt|||ƒWntk rXYnXt}t|tƒrrttdƒ}||kr~dSyt||ƒWn(t k r´| s®tj |ƒ r°‚YnXdS)a‹makedirs(name [, mode=0o777][, exist_ok=False]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist. If the target directory already exists, raise an OSError if exist_ok is False. Otherwise no exception is raised. This is recursive. ÚASCIIN) r ÚsplitÚexistsÚmakedirsÚFileExistsErrorrÚ isinstanceÚbytesr<ÚOSErrorÚisdir)r ÚmodeÚexist_okÚheadÚtailÚcdirrrrrjÃs$   rjc Cslt|ƒtj|ƒ\}}|s(tj|ƒ\}}x>|rf|rfy t|ƒWntk rTPYnXtj|ƒ\}}q*WdS)a¬removedirs(name) Super-rmdir; remove a leaf directory and all empty intermediate ones. Works like rmdir except that, if the leaf directory is successfully removed, directories corresponding to rightmost path segments will be pruned away until either the whole path is consumed or an error occurs. Errors during this latter phase are ignored -- they generally mean that a directory was not empty. N)rKr rhrn)r rrrsrrrÚ removedirsãs   ruc Csptj|ƒ\}}|r*|r*tj|ƒ r*t|ƒt||ƒtj|ƒ\}}|rl|rly t|ƒWntk rjYnXdS)a<renames(old, new) Super-rename; create directories as necessary and delete any left empty. Works like rename, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned until either the whole path is consumed or a nonempty directory is found. Note: this function can fail with the new directory structure made if you lack permissions needed to unlink the leaf directory or file. N)r rhrirjrFrurn)ÚoldÚnewrrrsrrrÚrenamesùs  rxTc6csôt|ƒ}g}g}g}y t|ƒ}Wn0tk rP}z|dk rB||ƒdSd}~XnX|���xöy(y t|ƒ} Wntk r‚PYnXWn0tk r¶}z|dk r¨||ƒdSd}~XnXy | jƒ} Wntk rÜd} YnX| rð|j| jƒn |j| jƒ| r^| r^|�rd} n.y | jƒ} Wntk �r8d} YnX| } | r^|j| j ƒq^WWdQRX|�rÀ|||fVt j t j } }xp|D]6}|||ƒ}|�s¤| |ƒ �r„t ||||ƒEdH�q„Wn0x"|D]}t ||||ƒEdH�qÆW|||fVdS)aã Directory tree generator. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), yields a 3-tuple dirpath, dirnames, filenames dirpath is a string, the path to the directory. dirnames is a list of the names of the subdirectories in dirpath (excluding '.' and '..'). filenames is a list of the names of the non-directory files in dirpath. Note that the names in the lists are just names, with no path components. To get a full path (which begins with top) to a file or directory in dirpath, do os.path.join(dirpath, name). If optional arg 'topdown' is true or not specified, the triple for a directory is generated before the triples for any of its subdirectories (directories are generated top down). If topdown is false, the triple for a directory is generated after the triples for all of its subdirectories (directories are generated bottom up). When topdown is true, the caller can modify the dirnames list in-place (e.g., via del or slice assignment), and walk will only recurse into the subdirectories whose names remain in dirnames; this can be used to prune the search, or to impose a specific order of visiting. Modifying dirnames when topdown is false is ineffective, since the directories in dirnames have already been generated by the time dirnames itself is generated. No matter the value of topdown, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated. By default errors from the os.scandir() call are ignored. If optional arg 'onerror' is specified, it should be a function; it will be called with one argument, an OSError instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename is available as the filename attribute of the exception object. By default, os.walk does not follow symbolic links to subdirectories on systems that support them. In order to get this functionality, set the optional argument 'followlinks' to true. Caution: if you pass a relative pathname for top, don't change the current working directory between resumptions of walk. walk never changes the current directory, and assumes that the client doesn't either. Example: import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print(root, "consumes", end="") print(sum([getsize(join(root, name)) for name in files]), end="") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories NFT) ÚfspathÚscandirrnÚnextÚ StopIterationÚis_dirÚappendr Ú is_symlinkr ÚislinkÚjoinÚwalk)ÚtopÚtopdownÚonerrorÚ followlinksÚdirsÚnondirsÚ walk_dirsÚ scandir_itÚerrorÚentryr}Ú walk_intorr€r�ÚdirnameÚnew_pathrrrr‚s`:             r‚Ú.)Úfollow_symlinksÚdir_fdc cs†t|tƒ st|dƒ r t|ƒ}t|d|d�}t|t|d�}z:|s^tj|j ƒrtt j |t|ƒƒrtt |||||ƒEdHWdt |ƒXdS)aDirectory tree generator. This behaves exactly like walk(), except that it yields a 4-tuple dirpath, dirnames, filenames, dirfd `dirpath`, `dirnames` and `filenames` are identical to walk() output, and `dirfd` is a file descriptor referring to the directory `dirpath`. The advantage of fwalk() over walk() is that it's safe against symlink races (when follow_symlinks is False). If dir_fd is not None, it should be a file descriptor open to a directory, and top should be relative; top will then be relative to that directory. (dir_fd is always supported for fwalk.) Caution: Since fwalk() yields file descriptors, those are only valid until the next iteration step, so you should dup() them if you want to keep them for a longer period. Example: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/email'): print(root, "consumes", end="") print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), end="") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories Ú __index__F)r‘r’)r’N)rlÚintÚhasattrryr6rBÚO_RDONLYÚstÚS_ISDIRÚst_moder ÚsamestatÚ_fwalkÚclose)rƒr„r…r‘r’Úorig_stÚtopfdrrrÚfwalk¥s!rŸc cs|t|ƒ}gg}}xŒ|D]„}y.tjt||d�jƒr>|j|ƒn |j|ƒWqtk ršy$tjt||dd�jƒr||j|ƒWntk r”wYnXYqXqW|r²||||fVx°|D]¨}y t|||d�} t|t |d�} Wn8tk �r} z|dk �r|| ƒw¸WYdd} ~ XnXz>|�s0t j | t| ƒƒ�rRt j ||ƒ} t | | |||ƒEdHWdt| ƒXq¸W|�sx||||fVdS)N)r’F)r’r‘)rRr—r˜r6r™r~rnÚS_ISLNKrBr–r ršr�r›rœ) ržÚtoppathr„r…r‘Únamesr‡rˆr r�ÚdirfdÚerrÚdirpathrrrr›Ós<      r›cGst||ƒdS)zpexecl(file, *args) Execute the executable file with argument list args, replacing the current process. N)Úexecv)ÚfileÚargsrrrÚexecl sr©cGs |d}t||dd…|ƒdS)zŠexecle(file, *args, env) Execute the executable file with argument list args and environment env, replacing the current process. rdNéÿÿÿÿrª)rT)r§r¨ÚenvrrrÚexeclesr¬cGst||ƒdS)z•execlp(file, *args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. N)Úexecvp)r§r¨rrrÚexeclpsr®cGs |d}t||dd…|ƒdS)z³execlpe(file, *args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env, replacing the current process. rdNrªrª)Úexecvpe)r§r¨r«rrrÚexeclpe sr°cCst||ƒdS)zÀexecvp(file, args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. args may be a list or tuple of strings. N)Ú_execvpe)r§r¨rrrr­)sr­cCst|||ƒdS)zßexecvpe(file, args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env , replacing the current process. args may be a list or tuple of strings. N)r±)r§r¨r«rrrr¯1sr¯cCs|dk rt}||f}nt}|f}t}tj|ƒ\}}|rH||f|žŽdSd}}d} t|ƒ} tdkrvt|ƒ}tt| ƒ} x†| D]~} tj | |ƒ} y|| f|žŽWq|t k rø} z>| }t j ƒd}| j t jkrè| j t jkrè|dkrè| }|} WYdd} ~ Xq|Xq|W|�r|j| ƒ‚|j|ƒ‚dS)Nr(re)rTr¦Úenvironr rhrr rÚmapr�rnÚsysÚexc_infoÚerrnoÚENOENTÚENOTDIRÚwith_traceback)r§r¨r«Ú exec_funcÚargrestrrrsÚlast_excÚ saved_excÚsaved_tbÚ path_listr ÚfullnameÚeÚtbrrrr±<s<      r±cCsÊddl}|dkrt}|jƒ�’|jdtƒy|jdƒ}Wntk rPd}YnXtrªy |d}Wnttfk rzYnX|dk rŒt dƒ‚|}|dk rªt |t ƒrªt |ƒ}WdQRX|dkrÀt }|jtƒS)zóReturns the sequence of directories that will be searched for the named executable (similar to a shell) when launching a process. *env* must be an environment variable dict or None. If *env* is None, os.environ will be used. rNÚignoreÚPATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)Úwarningsr²Úcatch_warningsÚ simplefilterÚ BytesWarningÚgetÚ TypeErrorÚsupports_bytes_environÚKeyErrorÚ ValueErrorrlrmrrrhr)r«rÅr¿Ú path_listbrrrr_s.     )ÚMutableMappingc@sTeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dS)Ú_EnvironcCs.||_||_||_||_||_||_||_dS)N)Ú encodekeyÚ decodekeyÚ encodevalueÚ decodevalueÚputenvÚunsetenvÚ_data)ÚselfÚdatarÑrÒrÓrÔrÕrÖrrrÚ__init__�sz_Environ.__init__c Cs>y|j|j|ƒ}Wntk r2t|ƒd‚YnX|j|ƒS)N)r×rÑrÌrÔ)rØÚkeyÚvaluerrrÚ __getitem__˜s z_Environ.__getitem__cCs.|j|ƒ}|j|ƒ}|j||ƒ||j|<dS)N)rÑrÓrÕr×)rØrÛrÜrrrÚ __setitem__ s   z_Environ.__setitem__c CsD|j|ƒ}|j|ƒy |j|=Wntk r>t|ƒd‚YnXdS)N)rÑrÖr×rÌ)rØrÛÚ encodedkeyrrrÚ __delitem__¦s    z_Environ.__delitem__ccs(t|jƒ}x|D]}|j|ƒVqWdS)N)rr×rÒ)rØÚkeysrÛrrrÚ__iter__¯s  z_Environ.__iter__cCs t|jƒS)N)Úlenr×)rØrrrÚ__len__µsz_Environ.__len__cs$djdj‡fdd„ˆjjƒDƒƒƒS)Nzenviron({{{}}})z, c3s*|]"\}}djˆj|ƒˆj|ƒƒVqdS)z {!r}: {!r}N)ÚformatrÒrÔ)rrÛrÜ)rØrrú ºsz$_Environ.__repr__..)rår�r×Úitems)rØr)rØrÚ__repr__¸s z_Environ.__repr__cCst|ƒS)N)Údict)rØrrrÚcopy½sz _Environ.copycCs||kr|||<||S)Nr)rØrÛrÜrrrÚ setdefaultÀsz_Environ.setdefaultN) Ú__name__Ú __module__Ú __qualname__rÚrÝrÞràrârärèrêrërrrrrÐŽs  rÐcCsdS)Nr)rÛrÜrrrÚÈsrïrÕcCs t|dƒS)NÚ)Ú_putenv)rÛrrrrïÐsrÖcsˆtdkrLdd„}|‰t}‡fdd„}i}xJtjƒD]\}}||||ƒ<q2Wn(tjƒ‰‡fdd„‰‡fdd „}ˆ}t}t|||ˆ|ttƒS) Nr(cSs t|tƒstdt|ƒjƒ‚|S)Nzstr expected, not %s)rlr,rÊÚtyperì)rÜrrrÚ check_strØs z!_createenviron..check_strcs ˆ|ƒjƒS)N)Úupper)rÛ)ÚencoderrrÑÞsz!_createenviron..encodekeycs(t|tƒstdt|ƒjƒ‚|jˆdƒS)Nzstr expected, not %sÚsurrogateescape)rlr,rÊròrìrõ)rÜ)Úencodingrrrõæs z_createenviron..encodecs |jˆdƒS)Nrö)Údecode)rÜ)r÷rrrøêsz_createenviron..decode) r r,r²rçr´ÚgetfilesystemencodingrÐrñÚ _unsetenv)rórørÑrÙrÛrÜr)rõr÷rÚ_createenvironÕs"   rûcCs tj||ƒS)z©Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default. key, default and the result are str.)r²rÉ)rÛÚdefaultrrrÚgetenvøsrýrËcCs t|tƒstdt|ƒjƒ‚|S)Nzbytes expected, not %s)rlrmrÊròrì)rÜrrrÚ _check_bytess rþcCs tj||ƒS)z³Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default. key, default and the result are bytes.)ÚenvironbrÉ)rÛrürrrÚgetenvbsrrÿcs4tjƒ‰tjƒ‰‡‡fdd„}‡‡fdd„}||fS)Ncs&t|ƒ}t|tƒr|jˆˆƒS|SdS)aEncode filename (an os.PathLike, bytes, or str) to the filesystem encoding with 'surrogateescape' error handler, return bytes unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). N)ryrlr,rõ)Úfilename)r÷Úerrorsrrrs  z_fscodec..fsencodecs&t|ƒ}t|tƒr|jˆˆƒS|SdS)aDecode filename (an os.PathLike, bytes, or str) from the filesystem encoding with 'surrogateescape' error handler, return str unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). N)ryrlrmrø)r)r÷rrrr&s  z_fscodec..fsdecode)r´rùÚgetfilesystemencodeerrors)rrr)r÷rrÚ_fscodecs   rÚforkÚspawnvr¦ÚP_WAITÚP_NOWAITÚ P_NOWAITOc CsÎt|ttfƒstdƒ‚| s&|d r.tdƒ‚tƒ}|sty$|dkrN|||ƒn ||||ƒWqÊtdƒYqÊXnV|tkr€|SxHt|dƒ\}}t |ƒrœq‚q‚t |ƒr®t |ƒ St |ƒr¾t |ƒStdƒ‚q‚WdS)Nzargv must be a tuple or a listrz"argv first element cannot be emptyéz"Not stopped, signaled or exited???)rlÚtuplerrÊrÍrr&rÚwaitpidÚ WIFSTOPPEDÚ WIFSIGNALEDÚWTERMSIGÚ WIFEXITEDÚ WEXITSTATUSrn)rpr§r¨r«ÚfuncÚpidÚwpidÚstsrrrÚ _spawnvefCs.  rcCst|||dtƒS)aspawnv(mode, file, args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. N)rr¦)rpr§r¨rrrrbscCst||||tƒS)a:spawnve(mode, file, args, env) -> integer Execute file with arguments from args in a subprocess with the specified environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rrT)rpr§r¨r«rrrÚspawnveksrcCst|||dtƒS)a8spawnvp(mode, file, args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. N)rr­)rpr§r¨rrrÚspawnvpwsrcCst||||tƒS)a\spawnvpe(mode, file, args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )rr¯)rpr§r¨r«rrrÚspawnvpe�srcGs t|||ƒS)aspawnl(mode, file, *args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )r)rpr§r¨rrrÚspawnl“srcGs|d}t|||dd…|ƒS)a:spawnle(mode, file, *args, env) -> integer Execute file with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. rdNrªrª)r)rpr§r¨r«rrrÚspawnleœsrcGs t|||ƒS)aWspawnlp(mode, file, *args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. )r)rpr§r¨rrrÚspawnlp®srcGs|d}t|||dd…|ƒS)a]spawnlpe(mode, file, *args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it. rdNrªrª)r)rpr§r¨r«rrrÚspawnlpe¸srÚrcCs®t|tƒstdt|ƒƒ‚|d kr.td|ƒ‚|dks>|dkrFtdƒ‚ddl}ddl}|dkr„|j|d|j|d�}t |j |j ƒ|ƒS|j|d|j|d �}t |j |j ƒ|ƒSdS) Nz&invalid cmd type (%s, expected string)rÚwzinvalid mode %rrz+popen() does not support unbuffered streamsT)ÚshellÚstdoutÚbufsize)r Ústdinr")rr) rlr,rÊròrÍÚ subprocessÚioÚPopenÚPIPEÚ _wrap_closeÚ TextIOWrapperr!r#)ÚcmdrpÚ bufferingr$r%ÚprocrrrrÈs$  c@s<eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd S)r(cCs||_||_dS)N)Ú_streamÚ_proc)rØÚstreamr,rrrrÚßsz_wrap_close.__init__cCs8|jjƒ|jjƒ}|dkr dStdkr,|S|d>SdS)Nrr(é)r-rœr.Úwaitr )rØÚ returncoderrrrœâs  z_wrap_close.closecCs|S)Nr)rØrrrÚ __enter__ësz_wrap_close.__enter__cGs |jƒdS)N)rœ)rØr¨rrrÚ__exit__ísz_wrap_close.__exit__cCs t|j|ƒS)N)Úgetattrr-)rØr rrrÚ __getattr__ïsz_wrap_close.__getattr__cCs t|jƒS)N)Úiterr-)rØrrrrâñsz_wrap_close.__iter__N) rìrírîrÚrœr3r4r6rârrrrr(Þs  r(cOs4t|tƒstdt|ƒƒ‚ddl}|j|f|ž|ŽS)Nz&invalid fd type (%s, expected integer)r)rlr”rÊròr%rB)Úfdr¨Úkwargsr%rrrrõs c Csˆt|ttfƒr|St|ƒ}y|j|ƒ}Wn0tk rXt|dƒrF‚ntd|jƒ‚YnXt|ttfƒrl|Stdj |jt|ƒjƒƒ‚dS)aaReturn the path representation of a path-like object. If str or bytes is passed in, it is returned unchanged. Otherwise the os.PathLike interface is used to get the path representation. If the path representation is not str or bytes, TypeError is raised. If the provided path is not str, bytes, or os.PathLike, TypeError is raised. Ú __fspath__z/expected str, bytes or os.PathLike object, not z7expected {}.__fspath__() to return str or bytes, not {}N) rlr,rmròr:rr•rÊrìrå)r Ú path_typeÚ path_reprrrrÚ_fspathþs r=ryc@s*eZdZdZejdd„ƒZedd„ƒZdS)ÚPathLikezCAbstract base class for implementing the file system path protocol.cCst‚dS)z9Return the file system path representation of the object.N)ÚNotImplementedError)rØrrrr:&szPathLike.__fspath__cCs t|dƒS)Nr:)r•)ÚclsÚsubclassrrrÚ__subclasshook__+szPathLike.__subclasshook__N) rìrírîÚ__doc__ÚabcÚabstractmethodr:Ú classmethodrBrrrrr>"sr>)rfF)TNF)r�TN)N)N)N)rýrË)N)rÿrrª)rrª)frCrDr´r¶r6r—Úbuiltin_module_namesZ_namesrrr"r rr#r&r~Ú ImportErrorÚ posixpathr r'Úextendr(ZntpathÚmodulesZos.pathrrrrrrrr rr)r.Úsetr*Úsupports_dir_fdÚsupports_effective_idsr+Ú supports_fdÚsupports_follow_symlinksr r rrjrurxr‚rBrRrŸr›r²Ú NameErrorr©r¬r®r°r­r¯r±rÚ_collections_abcrÏrÐrÕrñrÖrúrûrýrËrþr×rmrÿrrrrrrr rrrrrrrrrrr(rr=ryrìÚABCr>rrrrÚs|       (                                             ./     # - 7