403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/plugins/launchpad/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/plugins/launchpad/__pycache__/lp_api.cpython-313.pyc
�

p��g&��R�SrSSKrSSKJrJrJrJrJr SSKJ	r	 "SS\R5rSSKrSSKJrJrJr SS	KJr S
rSrSrS
r"SS\R25rSrSr"SS\5rSS\R<4Sjr"SS5r g!\
a
r\"\5eSrCff=f)z)Tools for dealing with the Launchpad API.�N�)�bedding�branch�errors�osutils�trace)�gettextc�,^�\rSrSrSrU4SjrSrU=r$)�LaunchpadlibMissing�z[launchpadlib is required for Launchpad API access. Please install the launchpadlib package.c�&>�[TU]SU5 g)N�launchpadlib)�super�__init__)�self�e�	__class__s  ��A/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_api.pyr�LaunchpadlibMissing.__init__#s���
�����+��)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�
__classcell__�rs@rrrs���	3�	�
,�,rr)�AccessToken�Credentials�CredentialStore)�	Launchpad)��rc�V�[R"[R"5S5$)z6Return the directory to cache launchpadlib objects in.�	launchpad)r�pathjoinr�	cache_dirrrr�get_cache_directoryr*7s�����G�-�-�/��=�=rc�R�[[[URS555$)z9Parse a version number of the style used by launchpadlib.�.)�tuple�map�int�split)�version_numbers r�parse_launchpadlib_versionr2<s����S�.�.�.�s�3�4�5�5rc��[[R5nU[:a+[R
"SSR
[U55eg)z<Raise an error if launchpadlib has the wrong version number.rzAAt least launchpadlib {} is required, but installed version is {}N)r2r�__version__�MINIMUM_LAUNCHPADLIB_VERSIONr�DependencyNotPresent�format)�installed_versions r� check_launchpadlib_compatibilityr9AsK��2�<�3K�3K�L���7�7��)�)��O�V�V�,�.?�
�
�	
�8rc��\rSrSrSrSrSrg)�NoLaunchpadBranch�Mz8No launchpad branch could be found for branch "%(url)s".c�T�[RRXURS9 g)N)r�url)r�BzrErrorr�base)rrs  rr�NoLaunchpadBranch.__init__Ps����� � ��&�+�+� �FrrN)rrrrrrrrrrr;r;Ms
��E�D�Grr;c�0�[R"US5$)N�breezy)r#�authorization_engine_factory)�base_urls r�get_auth_enginerFTs���1�1�(�H�E�Erc��[5$�N)�BreezyCredentialStorerrr�get_credential_storerJXs�� �"�"rc�<^�\rSrSrSrSU4SjjrSrSrSrU=r	$)rI�]zBImplementation of the launchpadlib CredentialStore API for Breezy.c�H>�[TU]U5 SSKJn U"5Ulg)Nr)�AuthenticationConfig)rr�
breezy.configrN�auth_config)r�credential_save_failedrNrs   �rr�BreezyCredentialStore.__init__`s���
���/�0�6�/�1��rc��URRUSURR5 URRUSURR5 URRUSUR
R5 URRUSUR
R5 g)z2Store newly-authorized credentials in the keyring.�consumer_key�consumer_secret�access_token�
access_secretN)rP�_set_option�consumer�key�secretrV)r�credentials�
unique_keys   r�do_save�BreezyCredentialStore.do_savefs������$�$����(<�(<�(@�(@�	
�	
���$�$��)�;�+?�+?�+F�+F�	
�	
���$�$����(@�(@�(D�(D�	
�	
���$�$����)A�)A�)H�)H�	
rc�8�URR5RU5nU(ajURS5(aT[URS5URS55n[	URS5URS5USS9$g)z&Retrieve credentials from the keyring.rWrVrTrU�Breezy)�
consumer_namerUrV�application_nameN)rP�_get_config�getr r!)rr]�auth_defrVs    r�do_load�BreezyCredentialStore.do_loadus����#�#�/�/�1�5�5�j�A������_�5�5�&����^�,�h�l�l�?�.K��L��&�l�l�>�:� (���->� ?�)�!)�	�
�r)rPrH)
rrrr�__doc__rr^rgrrrs@rrIrI]s���L�2�

�
�
rrIc�J�UcSSKnURS5n[5n[	5n[U5nSSKJn U"5n	U	c/[R"S5 [R"SUUUUUS9$[R"SUUUUUUUS	9$![a SnN}f=f)
zVLog in to the Launchpad API.

:return: The root `Launchpad` object from launchpadlib.
Nr�httpsr$)�get_lp_loginz>Accessing launchpad API anonymously, since no username is set.rC)rb�service_root�launchpadlib_dir�timeout�
proxy_info�version)rcrmrnro�credential_store�authorization_enginerprq)
�httplib2�proxy_info_from_environmentr*�OSErrorrJrF�accountrlr�mutterr#�login_anonymously�
login_with)
rErorprqrt�cache_directoryrrrsrl�lp_users
          r�connect_launchpadr}�s�������9�9�'�B�
��-�/��,�-��*�8�4��%��n�G���
���U�V��*�*�"�!�,��!��

�	
��#�#�%�!�,��-�!5�!��	
�		
��%�����s�
B�B"�!B"c�d�\rSrSrSrSSjr\S5r\S5r\	S5r
SrS	rS
r
Srg)
�LaunchpadBranch�z4Provide bzr and lp API access to a Launchpad branch.Nc�B�X lX0lSUlX@lXlg)z�Constructor.

:param lp_branch: The Launchpad branch.
:param bzr_url: The URL of the Bazaar branch.
:param bzr_branch: An instance of the Bazaar branch.
N)�bzr_url�_bzr�	_push_bzr�
_check_update�lp)r�	lp_branchr��
bzr_branch�check_updates     rr�LaunchpadBranch.__init__�s �����	����)���rc��URc.[RRUR5UlUR$)z&Return the bzr branch for this branch.)r�r�Branch�openr��rs r�bzr�LaunchpadBranch.bzr�s2���9�9���
�
�*�*�4�<�<�8�D�I��y�y�rc��URc8[RRURR
5UlUR$)z'Return the push branch for this branch.)r�rr�r�r��bzr_identityr�s r�push_bzr�LaunchpadBranch.push_bzr�s8���>�>�!�#�]�]�/�/����0D�0D�E�D�N��~�~�rc��UcgURS5(ag[R"S5n[UR	U55$)z�Is 'url' something that could conceivably be pushed to LP?

:param url: A URL that may refer to a Launchpad branch.
:return: A boolean.
Fzlp:Tz3([a-z]*\+)*(bzr\+ssh|http)://bazaar.*.launchpad.net)�
startswith�re�compile�bool�match)r>�regexs  r�plausible_launchpad_url�'LaunchpadBranch.plausible_launchpad_url�sA���;���>�>�%� � ���
�
�R�S���E�K�K��$�%�%rc�P�URnURbwURRnUc,[R"[S5UR-5eURnUc"[R"[S5U-5eO�URbIURRSS9nUc,[R"[S5UR-5eO,[R"[S5UR-5e[X3R5$)z8Return the 'LaunchpadBranch' for the target of this one.z%s has no development focus.z#development focus %s has no branch.�Release)�pocketz source package %s has no branch.z/%s has no associated product or source package.)r��project�development_focusrr?r	r�r�
sourcepackage�	getBranchr)rr��	dev_focus�targets    r�
get_target�LaunchpadBranch.get_target�s���G�G�	����(�!�)�)�;�;�I�� ��o�o��:�;�i�>T�>T�T����%�%�F��~��o�o��A�B�Y�N�����
$�
$�
0��,�,�6�6�i�6�H�F��~��o�o��>�?��-�-�.�����/�/��I�J��(�(�)��
��v�':�':�;�;rc��UR(dgURR5 URRGbNURR5URR:Xa@[R"[S5URR-5 SSS5 gURRR5nUR[R"URR5URR55(d+[R "URUR"5e[R"[S5URR-5 URR%UR"5 SSS5 g!,(df   g=f)z)Update the Launchpad copy of this branch.Nz%s is already up-to-date.z
Pushing to %s)r�r��	lock_readr��last_scanned_id�
last_revisionr�noter	r��
repository�	get_graph�is_ancestorr�	safe_utf8r�DivergedBranchesr��push)r�graphs  r�	update_lp�LaunchpadBranch.update_lp�s/���!�!��
�X�X�
�
�
!��w�w�&�&�2��8�8�)�)�+�t�w�w�/F�/F�F��J�J�� ;�<�t�w�w�?S�?S�S���
"�
!����+�+�5�5�7���(�(��%�%�d�g�g�&=�&=�>����@V�@V�@X���!�1�1�$�(�(�D�M�M�J�J��
�
�7�?�3�d�g�g�6J�6J�J�K��H�H�M�M�$�-�-�(�"�
!�
!�s�BG�8DG�
Gc�B�URRRURR5nURURR	5URR	55nURRRU5$)z�Find the revision tree for the LCA of this branch and other.

:param other: Another LaunchpadBranch
:return: The RevisionTree of the LCA of this branch and other.
)r�r�r��find_unique_lcar��
revision_tree)r�otherr��lcas    r�
find_lca_tree�LaunchpadBranch.find_lca_treeso�����#�#�-�-�e�i�i�.B�.B�C���#�#�D�H�H�$:�$:�$<�e�i�i�>U�>U�>W�X���x�x�"�"�0�0��5�5r)r�r�r�r�r�)NT)rrrrrir�propertyr�r��staticmethodr�r�r�r�rrrrrr�sU��>�����������&��&�<�8)�&6rr)!rir��rrrrr�i18nr	r6rr�ModuleNotFoundErrorr�launchpadlib.credentialsr r!r"�launchpadlib.launchpadr#r5r*r2r9r?r;rFrJrI�DEFAULT_VERSIONr}rrrr�<module>r�s���"0�
�7�7��,�&�5�5�,�!����
-� )��>�
6�
	
�G����G�F�#�
%�O�%�R�t�Y�5N�5N�(
�Vc6�c6��O�!�
�a�
 � ��!�s�B�B&�B!�!B&

Youez - 2016 - github.com/yon3zu
LinuXploit