403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/usr/lib/python3/dist-packages/mercurial/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/lib/python3/dist-packages/mercurial/utils/__pycache__/procutil.cpython-313.pyc
�

6�h�Y��^�SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKJr SSK
Jr SSKJrJrJrJrJr SSKJr \R."S5r\R2(aSS	KJr OSS
KJr Sr"SS
\R<5r"SS5r \RBRE\ 5 Sr#Sr$"SS\RJ5r&\RNRE\&5 Sr(\RRc\"5r)O\RRRTr)\RVc\"5r+O\("\RVRT5r+\RXc\"5r,O\("\RXRT5r,\R2(a$\RZ"\+5r+\RZ"\,5r,\"\+5(a\R\S:wa\#"\+5r+\R^r/\R`r1\Rdr2\Rfr3\Rhr4\Rjr5\Rlr6\Rnr7\Rpr8\Rrr9\Rtr:\Rvr;\Rxr<\Rzr=\R~r?\R�=(a \R\S:grASrB"SS5rCS7SjrDSrESrFS8SjrGS8SjrHS9SjrISrJS rK\K\JS!.rLS"rMSqNS#rOS$rPS%rQS&rRS'rSS(rTS)rUS8S*jrV\R2(aS+rW\R�rYOS,rW\R�rYS-r[S:S.jr\Sq]S/r^S0r_S1r`S;S2jra\R�S35rc\R2(aS4rd\d\R�-rfS<S5jrggS<S6jrgg!\>a GNf=f!\>a GNf=f)=�)�annotationsN)�BinaryIO���_)�encoding�error�policy�pycompat�typelib)�resourceutil�osutil)�windows)�posixc�D�UR5$![a gf=f)NF)�isatty�AttributeError)�fps �:/usr/lib/python3/dist-packages/mercurial/utils/procutil.pyrr/s%����y�y�{�������s��
�c�$�\rSrSrSrSrSrSrg)�BadFile�6z3Dummy file object to simulate closed stdio behaviorc�6�[[RS5e�NzBad file descriptor��OSError�errno�EBADF��self�bs  r�readinto�BadFile.readinto9����e�k�k�#8�9�9�c�6�[[RS5errrs  r�write�
BadFile.write<r$r%�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r"r'�__static_attributes__r)r%rrr6s��=�:�:r%rc�&�\rSrSrSrSrSrSrg)�LineBufferedWrapper�@c��Xlg�N��orig�r r6s  r�__init__�LineBufferedWrapper.__init__A����	r%c�.�[URU5$r4��getattrr6�r �attrs  r�__getattr__�LineBufferedWrapper.__getattr__D����t�y�y�$�'�'r%c��URnURU5nURS5(aUR5 U$)N�
)r6r'�endswith�flush)r �sr6�ress    rr'�LineBufferedWrapper.writeGs5���y�y���j�j��m���:�:�e����J�J�L��
r%r5N�r*r+r,r-r8r@r'r/r)r%rr1r1@s���(�r%r1c��Un[U[5(a
URnOB[R(a,[U[
R5(a
URnOOMf[U[R5(aU$[U[R5(aO[S5e[U[5(aU$[U5$)Nz1can't determine whether stream is buffered or not)
�
isinstance�WriteAllWrapperr6r�	iswindows�platform�	winstdoutr�io�	RawIOBase�BufferedIOBase�NotImplementedErrorr1)�stream�check_streams  r�make_line_bufferedrWTs����L�
��l�O�4�4�'�,�,�L�
�
�
�J�����%
�%
�(�?�?�L����,����-�-��
�	�L�"�"3�"3�	4�	4�	
�!�?�
�	
��&�-�.�.��
��v�&�&r%c��[U[5(a-[UR[5(aeUR$U$r4)rLr1r6�rUs r�unwrap_line_bufferedrZts7���&�-�.�.��f�k�k�+>�?�?�?�?��{�{���Mr%c�*�\rSrSrSSjrSrSrSrg)rM�{c��Xlgr4r5r7s  rr8�WriteAllWrapper.__init__|r:r%c�.�[URU5$r4r<r>s  rr@�WriteAllWrapper.__getattr__rBr%c��URRn[U5n[U5nSnXT:aU"X5S5nU(aXV-
nXT:aMU$)Nr)r6r'�
memoryview�len)r rG�write1�m�total_to_write�
total_written�cs       rr'�WriteAllWrapper.write�sV���������q�M���Q����
��,��q��(�)�A���"�
��,��r%r5N)r6rrJr)r%rrMrM{s���(�	r%rMc��[U[5(aU$[U[R5(aU$[U5$r4)rLrMrQrSrYs r�_make_write_allrk�s;���&�/�*�*��
��&�"�+�+�,�,��
��6�"�"r%�OpenVMSc�H�US:�a[S5U-$[S5U*-$)zlreturn a message describing a subprocess status
(codes from kill are negative - not os.system/wait encoding)rsexited with status %dskilled by signal %dr)�codes r�explainexitro�s/���q�y��)�*�T�1�1��
#�$��u�,�,r%c�<�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�_pfile��z;File-like wrapper for a stream opened by subprocess.Popen()c��XlX lgr4)�_proc�_fp)r �procrs   rr8�_pfile.__init__�s���
��r%c�j�URR5 URR5$r4)ru�closert�wait�r s rry�_pfile.close�s!���������z�z��� � r%c�,�[UR5$r4)�iterrur{s r�__iter__�_pfile.__iter__�s���D�H�H�~�r%c�.�[URU5$r4)r=rur>s  rr@�_pfile.__getattr__�s���t�x�x��&�&r%c��U$r4r)r{s r�	__enter__�_pfile.__enter__�s���r%c�$�UR5 gr4)ry)r �exc_type�	exc_value�exc_tbs    r�__exit__�_pfile.__exit__�s���
�
�r%)rurtN)r*r+r,r-r.r8ryrr@r�r�r/r)r%rrqrq�s#��E��!�
�'��r%rqc�x�US:Xa[X5$US:Xa[X5$[R"SU-5e)N�rbswbsunsupported mode: %r)�_popenreader�_popenwriterr	�ProgrammingError)�cmd�mode�bufsizes   r�popenr��s=���u�}��C�)�)�	
����C�)�)�
�
 �
 �!8�4�!?�
@�@r%c��[R"[U5SU[[RS9n[X"R5$)NT)�shellr��	close_fds�stdout)�
subprocess�Popen�tonativestr�closefds�PIPErqr��r�r��ps   rr�r��s;������C��������	�A��!�X�X��r%c��[R"[U5SU[[RS9n[X"R5$)NT)r�r�r��stdin)r�r�r�r�r�rqr�r�s   rr�r�s;������C������o�o�	�A��!�W�W��r%c���[R"[U5SS[[R[R[U5S9nURUR4$)NT���)r�r�r�r�r��env)r�r�r�r�r��tonativeenvr�r�)r�r�r�s   r�popen2r�sP��	����C������o�o�������	�A�
�7�7�A�H�H��r%c�&�[X5up#pEX#U4$r4)�popen4)r�r�r�r��stderrr�s      r�popen3r�#s��%�c�/��E�6��&� � r%c��[R"[U5SU[[R[R[R[U5S9nURURURU4$)NT)r�r�r�r�r�r�r�)	r�r�r�r�r�r�r�r�r�)r�r�r�r�s    rr�r�(s]������C������o�o����������		�A�
�7�7�A�H�H�a�h�h��)�)r%c��[R"[U5S[[R[RS9nURU5up4U$)z9filter string S through command CMD, returning its outputT)r�r�r�r�)r�r�r�r�r��communicate)rGr�r��pout�perrs     r�
pipefilterr�6sE������C�����o�o����	�A����q�!�J�D��Kr%c��Sup#[R"SS9upB[R"US5nUR	U5 SSS5 [R"SS9upc[R
"U5 UR
SU5nUR
SU5n[U5nU(a-[R"[S	5U[U54-5e[US
5nUR5sSSS5 U(a[R"U5 U(a[R"U5 $$!,(df   GN=f![a N>f=f![a $f=f!,(df   O=fU(a[R"U5 O![a Of=fU(a[R"U5 gg![a gf=f!U(a[R"U5 O![a Of=fU(a[R"U5 ff![a ff=f=f)z�filter string S through a pair of temporary files with CMD.
CMD is used as a template to create the real command to be run,
with the strings INFILE and OUTFILE replaced by the real names of
the temporary files generated.)NNs
hg-filter-in-)�prefix�wbNshg-filter-out-sINFILEsOUTFILEscommand '%s' failed: %s�rb)r�mkstemp�os�fdopenr'ry�replace�systemr	�Abortrro�open�read�unlinkr)rGr��inname�outname�infdr�outfdrns        r�
tempfilterr�Cs���
!�O�F���'�'�/?�@���
�Y�Y�t�T�
"�b��H�H�Q�K�#�"�)�)�1B�C���
������k�k�)�V�,���k�k�*�g�.���c�{����+�+��,�-��k�$�6G�0H�H��
��'�4�
 �B��7�7�9�!�
 �	���	�	�&�!�	���	�	�'�"��+#�
"��$�	��	��
�	��	��!�
 ��
 �	���	�	�&�!���	��	��	���	�	�'�"����	��	��	���	�	�&�!���	��	��	���	�	�'�"����	��	�s��-G"�D?�B#G"�(E1�8	G"�E� E!�?
E�	G"�
E�E�!
E.�-E.�1
E?�;G"�F"�"
F/�.F/�3G�
G�G�"I�$H�I�
H�I�H�I�H2�0I�2
H?�<I�>H?�?I)s	tempfile:spipe:c���[R5H?up#URU5(dMU"X[U5SR	55s $ [X5$)zIfilter a string through a command that transforms its input to its
outputN)�_filtertable�items�
startswithrc�lstripr�)rGr��name�fns    r�filterr�msT��!�&�&�(����>�>�$����a�S��Y�[�)�0�0�2�3�3�)��a��r%c�Z�[Gc�[RRSS5n[R
Sn[RS:XaUSSS:XaS	USS-nU(a[U5 [$[R"5(aW[[S
S5S:Xa"[[RS5 [$[[R5 [$[R(d][RR![US
S55S:Xa/[[R""UR$55 [$[['S5=(d0 [RR![R(S55 [$)zUreturn location of the 'hg' executable.

Defaults to $HG or 'hg' in the search path.
N�HG��__main__rlr��$zmcr �frozen�
macosx_app�EXECUTABLEPATH�__file__�hgshg)�
_hgexecutabler�environ�get�sys�modulesr�sysplatform�_sethgexecutabler
�
mainfrozenr=�
sysexecutablerNr��path�basename�fsencoder��findexe�sysargv)r��mainmods  r�hgexecutabler�ysF��
��
�
�
�
!�
!�%��
,���+�+�j�)�����:�-�"�Q�q�'�S�.��"�Q�R�&��B�
��R� � ���
$�
$�
&�
&��s�H�d�+�|�;� ��!1�!1�2C�!D�E���!��!7�!7�8����"�"���� � ���*�b�!A�B�d�J��X�.�.�w�/?�/?�@�A�
��
����G�"�'�'�"2�"2�8�3C�3C�A�3F�"G�
��r%c��Uqg)z#set location of the 'hg' executableN)r�)r�s rr�r��s	���Mr%c��[USS5nU=(a U"5UR5:H$![Ra gf=f)N�filenoF)r=r�rQ�UnsupportedOperation)�f�stdfr�s   r�_testfilenor��sE��
�Q��$�
'�F���3�&�(�d�k�k�m�3�3��
�"�"����s� 0�A�Ac�6�[U[R5$r4)r�r��	__stdin__�r�s r�isstdinr��s���q�#�-�-�(�(r%c�6�[U[R5$r4)r�r��
__stdout__r�s r�isstdoutr��s���q�#�.�.�)�)r%c��UR5 Xp2[U[5(a�[R"UR55n[R"[R[R5n[R"XPR55 [R"U5 [R"US5n[U[5(ar[R"UR55n[R"[R5UR55 [R"US5nX#4$)a�Duplicate streams and redirect original if (uin, uout) are stdio

If uin is stdin, it's redirected to /dev/null. If uout is stdout, it's
redirected to stderr so the output is still readable.

Returns (fin, fout) which point to the original (uin, uout) fds, but
may be copy of (uin, uout). The returned streams can be considered
"owned" in that print(), exec(), etc. never reach to them.
r�r�)rFr�r�r��dupr�r��devnull�O_RDONLY�dup2ryr�r�r�)�uin�uout�fin�fout�newfd�nullfds      r�protectstdior��s���	�J�J�L����3�������s�z�z�|�$��������R�[�[�1��
����
�
��%�
������i�i��t�$���4�� � ����t�{�{�}�%��
����
�
������/��y�y���%���9�r%c���UR5 X 4X144HNupEXELdM[R"UR5UR55 UR	5 MP g)z@Restore (uin, uout) streams from possibly duplicated (fin, fout)N)rFr�r�r�ry)r�r�r�r�r��uifs      r�restorestdior�sH���J�J�L��:��|�,����<��G�G�A�H�H�J��
�
��-�
�G�G�I�-r%c�^�Sm[[R5nU(a)URU4SjUR	555 [5US'U$)z>return environ with optional override, useful for shelling outc�L�UbUSLagUSLag[R"U5$)z9convert python object into string that is useful to shellF�0T�1)r�bytestr)�vals r�py2shell�shellenviron.<locals>.py2shell�s+���;�#��,���$�;������$�$r%c3�<># �UHupUT"U54v� M g7fr4r))�.0�k�vr	s   �r�	<genexpr>�shellenviron.<locals>.<genexpr>�s����@����A�x��{�#��s�r�)�dictrr��updater�r�)r�r�r	s  @r�shellenvironr�sE���%��x���
 �C���
�
�@��
�
��@�@���C��J��Jr%c�B�[R"U[U55$r4)rO�
shelltocmdexer�r�r�s  r�
shelltonativer�s���%�%���c�"�
�	
r%c��U$r4r)rs  rrr�s���
r%c�8�[R"[U5$)zHconvert the environment from bytes to strings suitable for Popen(), etc.)r�rapplyr�)r�s rr�r��s���?�?�;��,�,r%c
��[R5 [U5nUb[	U5(aI[
R"[U5S[[U5[R"[U5S9nU$[
R"[U5S[[U5[R"[U5[
R[
RS9n[URR S5HnUR#U5 M UR%5 UR&nU$![a GN/f=f)z�enhanced shell command execution.
run with environment maybe modified, maybe in different dir.

if out is specified, it is assumed to be a file-like object that has a
write() method. stdout and stderr will be redirected to out.T)r�r�r��cwd)r�r�r�rr�r�r%)r�rF�	Exceptionrr�r��callr�r�r�rrr�r��STDOUTr~�readliner'rz�
returncode)r�r�r�outr��rcrv�lines        rr�r��s���
������w�
�C�
�{�h�s�m�m�
�_�_�������C� �����S�1�
��*�I����������C� �����S�1��?�?��$�$�
������-�-�s�3�D��I�I�d�O�4��	�	��
�_�_��
�I��3�
��
�s�D8�8
E�Ec�d�[R(a@S[R;ag[	[
SS5(a[
R
5$g[R=(dE [RRS5=(d [RRS5$)zAre we running in a GUI?sSSH_CONNECTIONF�isguiNTsDISPLAYsWAYLAND_DISPLAY)	r�isdarwinrr�r=rr&rNr�r)r%r�_guir(s������� 0� 0�0��
�V�W�d�
+�
+��<�<�>�!��
���
8����#�#�J�/�
8����#�#�$6�7�	
r%c�0�[c
[5q[$r4)�_is_guir(r)r%r�guir+1s�����&���Nr%c��[R"5(a:[[SS5S:Xa[R
S/$[R/$[5$)z�Return the command used to execute current hg

This is different from hgexecutable() because on Windows we want
to avoid things opening new shell windows like batch files, so we
get either the python call or current executable.
r�Nr�r�)	r
r�r=r�rr�rr��	_gethgcmdr)r%r�hgcmdr.8sP����� � ��3��$�'�<�7��$�$�%6�7�8�8��*�*�+�+��;�r%c�:^�[5mU4SjnSn[[SS5nUb[R"XB5n[U5nU"5(dpUT;d[	U5(d6U"5(d*Ub%[R"[R
U5 g[R"S5 U"5(dMpUUb%[R"[R
U5 $!Ub%[R"[R
U5 f=f)aGExecute the argument list in a detached process.

condfn is a callable which is called repeatedly and should return
True once the child process is known to have started successfully.
At this point, the child process PID is returned. If the child
process fails to start or finishes before condfn() evaluates to
True, return -1.
c�N>�TR[R"55 gr4)�addr�rz)�signum�frame�
terminateds  �r�handler�rundetached.<locals>.handlerZs������r�w�w�y�!r%N�SIGCHLDr�g�������?)�setr=�signal�
spawndetached�testpidr7�time�sleep)�args�condfnr5�prevhandlerr7�pidr4s      @r�rundetachedrBHs���� ��J�"��K��f�i��.�G����m�m�G�5��
��D�!���(�(��z�!�����v�x�x���"��M�M�&�.�.�+�6�	
�
�J�J�s�O��(�(���"��M�M�&�.�.�+�6�	
���"��M�M�&�.�.�+�6�	
�s�9C0�""C0�C0�0*Dc#��^^^# �[R"[R5/m/mUUU4Sjn[R"[RU5 Sv� T(a([R"[RTS5 T(a[eg![a TS	NPf=f!T(a([R"[RTS5 T(a[ef=f7f)z�Inhibit SIGINT handling on a region of code.

Note that if this is called in a non-main thread, it turns into a no-op.

Args:
  warn: A callable which takes no arguments, and returns True if the
        previous signal handling should be restored.
c�>�T"5(a+[R"[RTS5 TS	TRS5 g)NrT)r9�SIGINT�append)r>�oldsiginthandler�
shouldbail�warns ���r�disabledsiginthandler�.uninterruptible.<locals>.disabledsiginthandler�s8����6�6��M�M�&�-�-�)9�!�)<�=� ��#����$�r%rN)r9�	getsignalrE�
ValueError�KeyboardInterrupt)rIrJrGrHs` @@r�uninterruptiblerOss������(�(����7�8���J� �$�	$��M�M�&�-�-�)>�?�	���M�M�&�-�-�)9�!�)<�=��#�#����	$� ��#�	$��
��M�M�&�-�-�)9�!�)<�=��#�#��s:�0C1�%B�B0� =C1�
B-�*B0�,B-�-B0�0>C.�.C1�c��SnUbG[R"5nURU5 UR5 UR	S5 [
R"[R"[U5U[U5S[UUUS9n	UbU"U	R5 UbUR5 gg!UbUR5 ff=f)z1Spawn a command without waiting for it to finish.NrT)r�r�r��
creationflagsr�r�r�)
r�unnamedtempfiler'rF�seekr�r�rr�r��_creationflagsrzry)
�scriptr�r�r�r��ensurestart�record_wait�stdin_bytesr�r�s
          r�runbgcommandrZ�s�����	��&� �0�0�2�����K�(����
��
�
�1�
�� � �����V�4����$��,����	�A��&��A�F�F�#�� ����
�!��u� ����
�!�s�B B9�9Cc�^
�[R(a
[5 U(aUnO0[U[5(aU/nSRSU55nUcSU-nSn	OSn	SnSn
Uc[Rn
OG[R"5n
U
RU5 U
R5 U
RS5 Uc[RnUc[Rn[R"USUSU
UUU	S9m
Ub*U
b'[U
[5(aeU
R5 U(d0[ R""U
4S
jS9nSUlUR'5 gT
R(nUb	U"U5 gg![a
 UbU"S	5 ef=f!Ub,U
b([U
[5(aeU
R5 fff=f)atSpawn a command without waiting for it to finish.


When `record_wait` is not None, the spawned process will not be fully
detached and the `record_wait` argument will be called with a the
`Subprocess.wait` function for the spawned process.  This is mostly
useful for developers that need to make sure the spawned process
finished before a certain point. (eg: writing test)� c3�8# �UHn[U5v� M g7fr4)�
shellquote)r�xs  rr�runbgcommand.<locals>.<genexpr>�s���:�c��z�!�}�}�c�s�Ns( ( %s ) <&3 3<&- &) 3<&0TFr)r�r�r�r�r�r��start_new_session�c�>�TR$r4)rz)r�s�r�<lambda>�runbgcommand.<locals>.<lambda>s	�����r%)�target)rr'r+rL�bytes�joinr��DEVNULLrSr'rFrTr�r�intry�	threading�Thread�daemon�startrz)r�r�r�r�r�rWrXrYrVrar��tr!r�s             @rrZrZ�s����$���
�E���F��#�u�%�%��e���Y�Y�:�c�:�:�F���1�F�:�F� $�� %���K���	��"�"�*�*�� �0�0�2�����K�(����
��
�
�1�
��~�#�+�+���~�#�+�+��� � ��������"3�	�A��&�5�+<�%�e�S�1�1�1�1����
��� � ��7�A��A�H�
�G�G�I����J��&��J�'�'��'�	��&��C� ��	��
�&�5�+<�%�e�S�1�1�1�1����
�,=�&�s�-BF�F�F!�!1G)r�r�r4)Nr�)NNN)�returnrj)FNNTNN)h�
__future__r�
contextlibrrQr�r9r�r�rkr<�typingr�i18nrr�rr	r
rr�utilsr
�	importmodrrNrrOrrrRrr1rS�registerrWrZ�BinaryIO_ProxyrM�IOBaserkr��bufferr�r�rPr�r��gethgcmdr-�getuser�getpid�
hidewindow�readpipe�	setbinary�setsignalhandlerr^�
shellsplitr:�sshargsr;�setprocnamer�
unblocksignal�isposixr�rorqr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr�strfromlocalr��identityr�r�r*r(r+r.rB�contextmanagerrO�DETACHED_PROCESS�CREATE_NEW_PROCESS_GROUPrUrZr)r%r�<module>r�s���#���	�	�
��
�������!�	�	�	�(�	#�����&�$��:�b�l�l�:��� �����.�/�'�@��g�,�,��(�	�	���?�#�	#�$�9�9���I�E��I�I���E��:�:��
�Y�F�
�S�Z�Z�.�.�
/�F��:�:��
�Y�F�
�S�Z�Z�.�.�
/�F����
�
�
��
'�F�
�
�
��
'�F�	�&�>�>�h�*�*�j�8�
��
'�F�
�
�
�����	�
�
�
��	����
�
 �
 �
��������	��,�,��
�
 �
 �
�
�
 �
 �
��&�&�
�
�
�
��
�
�
��	��$�$�K�	��(�(�M����B�� 4� 4�
� B��-���2A���
� !�
*�
�!�J������
��<��)�*��2��$���
�
�'�'�K���#�#�K�-�
!�H��
�(�
� (
�V���$��$�B���"��
	�
�
-�
-�	.��������%�X������R(��C�	��	���	��	�s$�5N�N"�N�N�"N,�+N,

Youez - 2016 - github.com/yon3zu
LinuXploit