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
 mŽŒYõã@sddlZddlZddlZddlZddlZddlZddlZdddgZdZej j dƒr„dZ n ej ƒZ Gdd„de ƒZejd d „ƒZd d „Zdd d„Zddddd„Zdd„Zddd„ZedkreƒdS)éNÚ ZipAppErrorÚcreate_archiveÚget_interpreterz8# -*- coding: utf-8 -*- import {module} {module}.{fn}() Úwinzutf-8c@seZdZdS)rN)Ú__name__Ú __module__Ú __qualname__©r r ú%/opt/python35/lib/python3.5/zipapp.pyr!s c csWt|tjƒrt|ƒ}t|tƒrNt||ƒ� }|VWdQRXn|VdS)N)Ú isinstanceÚpathlibÚPathÚstrÚopen)ÚarchiveÚmodeÚfr r r Ú _maybe_open%s  rcCs.|r*d|jtƒd}|j|ƒdS)zWrite a shebang line.s#!s N)ÚencodeÚshebang_encodingÚwrite)rÚ interpreterZshebangr r r Ú_write_file_prefix0srcCsÃt|dƒ�u}|jdƒ}|dkr=d}|jƒt|dƒ�1}t||ƒ|j|ƒtj||ƒWdQRXWdQRX|r¿t|tƒr¿t j |t j |ƒj t j BƒdS)z8Copy an application archive, modifying the shebang line.Úrbés#!óÚwbN)rÚreadÚreadlinerrÚshutilÚ copyfileobjr rÚosÚchmodÚstatÚst_modeÚS_IEXEC)rZ new_archiverÚsrcZfirst_2Údstr r r Ú _copy_archive7s    r(cCs�d}t|dƒr-t|dƒr-d}n!tj|ƒ}|jƒrNd}|rht|||ƒdS|jƒs€tdƒ‚|djƒ}|r¨|r¨tdƒ‚|p±|sÀtd ƒ‚d}|rh|jd ƒ\}}} td d „|j d ƒDƒƒ} tdd „| j d ƒDƒƒ} |d ko=| o=| sPtd|ƒ‚t j d|d| ƒ}|dkr†|j dƒ}nt|dƒs¤tj|ƒ}t |dƒ�£} t| |ƒtj| dƒ�z} tj|ƒ}xB|jdƒD]1}t|j|ƒƒ}| jt|ƒ|ƒq÷W|rK| jd|jdƒƒWdQRXWdQRX|rŒt|dƒ rŒ|j|jƒjtjBƒdS)abCreate an application archive from SOURCE. The SOURCE can be the name of a directory, or a filename or a file-like object referring to an existing archive. The content of SOURCE is packed into an application archive in TARGET, which can be a filename or a file-like object. If SOURCE is a directory, TARGET can be omitted and will default to the name of SOURCE with .pyz appended. The created application archive will have a shebang line specifying that it should run with INTERPRETER (there will be no shebang line if INTERPRETER is None), and a __main__.py which runs MAIN (if MAIN is not specified, an existing __main__.py will be used). It is an error to specify MAIN for anything other than a directory source with no __main__.py, and it is an error to omit MAIN if the directory has no __main__.py. FrrTNzSource does not existz __main__.pyz8Cannot specify entry point if the source has __main__.pyzArchive has no entry pointú:css|]}|jƒVqdS)N)Ú isidentifier)Ú.0Úpartr r r ú |sz!create_archive..Ú.css|]}|jƒVqdS)N)r*)r+r,r r r r-}szInvalid entry point: ÚmoduleÚfnz.pyzrrÚwÚ*zutf-8)Úhasattrr r Úis_filer(ÚexistsrÚ partitionÚallÚsplitÚ MAIN_TEMPLATEÚformatZ with_suffixrrÚzipfileÚZipFileZrglobrZ relative_torZwritestrrr"r#r$r%)ÚsourceÚtargetrÚmainZsource_is_fileZhas_mainZmain_pyÚmodÚsepr0Zmod_okZfn_okÚfdÚzÚrootZchildZarcnamer r r rNsP        ""  'c CsKt|dƒ�5}|jdƒdkr@|jƒjƒjtƒSWdQRXdS)Nrrs#!)rrrÚstripÚdecoder)rrr r r r•scCsªddl}|jƒ}|jddddddƒ|jdd dddd ƒ|jd d dddd ƒ|jdddddddƒ|jdddƒ|j|ƒ}|jr tjj|jƒs×t dƒ‚t |jƒ}t dj |pødƒƒt jdƒtjj|jƒr�|jdks`tjj|jƒrltjj|j|jƒrlt dƒ‚|jr�t dƒ‚t|j|jd|jd|jƒdS)zÞRun the zipapp command line interface. The ARGS parameter lets you specify the argument list directly. Omitting ARGS (or setting it to None) works as for argparse, using sys.argv[1:] as the argument list. rNz--outputz-oÚdefaultÚhelpzAThe name of the output archive. Required if SOURCE is an archive.z--pythonz-pzEThe name of the Python interpreter to use (default: no shebang line).z--mainz-mzLThe main function of the application (default: use an existing __main__.py).z--infoFÚactionÚ store_truez)Display the interpreter from the archive.r=z'Source directory (or existing archive).z%Can only get info for an archive filezInterpreter: {}zz-In-place editing of archives is not supportedz,Cannot change the main function when copyingrr?)ÚargparseÚArgumentParserÚ add_argumentÚ parse_argsÚinfor!ÚpathÚisfiler=Ú SystemExitrÚprintr:ÚsysÚexitÚoutputr5Úsamefiler?rÚpython)ÚargsrKÚparserrr r r r?›s6      $   r?Ú__main__)Ú contextlibr!r rr#rTr;Ú__all__r9ÚplatformÚ startswithrÚgetfilesystemencodingÚ ValueErrorrÚcontextmanagerrrr(rrr?rr r r r Ús(           G -