-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/api.pyc

ó
î:ïNc@@sZdZddlmZddlZddlmZd„Zd„Zd„Zd„Z	dS(	sÂLibrary API versioning support.

Added in bzrlib 0.18 this allows export of compatibility information about
bzrlib. Please see doc/developers/api-versioning.txt for design details and
examples.
i(tabsolute_importN(tIncompatibleAPIcC@sPy|jSWn>tk
rKy|jdd!SWqLtk
rGttƒSXnXdS(s­Return the API version tuple for object_with_api.

    :param object_with_api: An object to look for an API version on. If the
        object has a api_current_version attribute, that is used. Otherwise if
        there is a version_info attribute, its first three elements are used.
        Finally if there was no version_info attribute, the current api version
        of bzrlib itself is used.

    Added in bzrlib 0.18.
    iiN(tapi_current_versiontAttributeErrortversion_infotget_current_api_versiontbzrlib(tobject_with_api((s./usr/lib/python2.7/dist-packages/bzrlib/api.pyRs

cC@s*y|jSWntk
r%ttƒSXdS(s/Return the minimum API version supported by object_with_api.

    :param object_with_api: An object to look for an API version on. If the
        object has a api_minimum_version attribute, that is used. Otherwise the
        minimum api version of bzrlib itself is used.

    Added in bzrlib 0.18.
    N(tapi_minimum_versionRtget_minimum_api_versionR(R((s./usr/lib/python2.7/dist-packages/bzrlib/api.pyR	2s	
cC@sLt|ƒ}t|ƒ}||ks0||krHt||||ƒ‚ndS(sÁCheck if object_with_api supports the api version wanted_api.

    :param object_with_api: An object which exports an API minimum and current
        version. See get_minimum_api_version and get_current_api_version for
        details.
    :param wanted_api: The API version for which support is required.
    :return: None
    :raises IncompatibleAPI: When the wanted_api is not supported by
        object_with_api.

    Added in bzrlib 0.18.
    N(RR	R(Rt
wanted_apitcurrenttminimum((s./usr/lib/python2.7/dist-packages/bzrlib/api.pytrequire_apiAs
cC@sOx7|d D]+}yt||ƒSWqtk
r5qXqWt||dƒdS(sÜCheck if object_with_api supports the api version wanted_api.

    :param object_with_api: An object which exports an API minimum and current
        version. See get_minimum_api_version and get_current_api_version for
        details.
    :param wanted_api: A list of API versions, any of which being available is
        sufficent.
    :return: None
    :raises IncompatibleAPI: When the wanted_api is not supported by
        object_with_api.

    Added in bzrlib 1.9.
    iÿÿÿÿN(R
R(Rtwanted_api_listtapi((s./usr/lib/python2.7/dist-packages/bzrlib/api.pytrequire_any_apiTs
(
t__doc__t
__future__RRt
bzrlib.errorsRRR	R
R(((s./usr/lib/python2.7/dist-packages/bzrlib/api.pyt<module>s			

Copyright © 2017 || Recoded By Mr.Bumblebee