-=[ Mr. Bumblebee ]=-
_Indonesia_

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


Qc@@sbdZddlmZddlZejZddlZddlZdZdZdZ	dZ
dZeede
re`ddlZejjnee	ZeZd
ZejZeedddk	redksejejdkreejZqnedkr(dZnejejZdZeddddZdZdS(sAll of bzr.

Developer documentation is available at
http://doc.bazaar.canonical.com/bzr.dev/developers/

The project website is at http://bazaar.canonical.com/

Some particularly interesting things in bzrlib are:

 * bzrlib.initialize -- setup the library for use
 * bzrlib.plugin.load_plugins -- load all installed plugins
 * bzrlib.branch.Branch.open -- open a branch
 * bzrlib.workingtree.WorkingTree.open -- open a working tree

We hope you enjoy this library.
i(tabsolute_importNs
.bzrignores"Copyright 2005-2012 Canonical Ltd.iitdeviicC@s\t|dkr#d|d }nd|d }t|dkrG|S|d}|d}|dkr||dkr|d}n|dkrd	t|}n|d
kr|dkrd
}n|d
krd
t|}ny|dkr|ddkrd|d }n|dt|}n5|d
kr>dt|}nd	jtt|S||S(sTurn a version number 2, 3 or 5-tuple into a short string.

    This format matches <http://docs.python.org/dist/meta-data.html>
    and the typical presentation used in Python output.

    This also checks that the version is reasonable: the sub-release must be
    zero for final releases.

    >>> print _format_version_tuple((1, 0, 0, 'final', 0))
    1.0.0
    >>> print _format_version_tuple((1, 2, 0, 'dev', 0))
    1.2.0dev
    >>> print _format_version_tuple((1, 2, 0, 'dev', 1))
    1.2.0dev1
    >>> print _format_version_tuple((1, 1, 1, 'candidate', 2))
    1.1.1rc2
    >>> print _format_version_tuple((2, 1, 0, 'beta', 1))
    2.1b1
    >>> print _format_version_tuple((1, 4, 0))
    1.4.0
    >>> print _format_version_tuple((1, 4))
    1.4
    >>> print _format_version_tuple((2, 1, 0, 'final', 42))
    2.1.0.42
    >>> print _format_version_tuple((1, 4, 0, 'wibble', 0))
    1.4.0.wibble.0
    is%d.%ds%d.%d.%diitfinalitt.Rtalphatbetat	candidatetrc(RR(tlentstrtjointmap(tversion_infotmain_versiontrelease_typetsubt
sub_string((s3/usr/lib/python2.7/dist-packages/bzrlib/__init__.pyt_format_version_tuple@s.

		t_bzr_lazy_regexcC@sy(ddl}|jj|jd}Wnttfk
rBdSX|j|jt||j}|j	|_	t
j|krtdn|S(sChange the Python process global encoding for filesystem names
    
    The effect is to change how open() and other builtin functions handle
    unicode filenames on posix systems. This should only be done near startup.

    The new encoding string passed to this function must survive until process
    termination, otherwise the interpreter may access uninitialized memory.
    The use of intern() may defer breakage is but is not enough, the string
    object should be secure against module reloading and during teardown.
    iNtPy_FileSystemDefaultEncodings0Failed to change the filesystem default encoding(
tctypestc_void_ptin_dllt	pythonapitImportErrort
ValueErrortcasttc_char_ptinterntvaluetsystgetfilesystemencodingtRuntimeError(tnew_encRtold_ptrtnew_ptr((s3/usr/lib/python2.7/dist-packages/bzrlib/__init__.pyt"_patch_filesystem_default_encodings
$t_bzr_default_fs_enctasciic
C@sddlm}m}|rpddl}|p4tj}|pCtj}|pRtj}|jj	|||}nd}|j}|jd|d|}	|	j
|	S(sdSet up everything needed for normal use of bzrlib.

    Most applications that embed bzrlib, including bzr itself, should call
    this function to initialize various subsystems.  

    More options may be added in future so callers should use named arguments.

    The object returned by this function can be used as a contex manager
    through the 'with' statement to automatically shut down when the process
    is finished with bzrlib.  However (from bzr 2.4) it's not necessary to
    separately enter the context as well as starting bzr: bzrlib is ready to
    go when this function returns.

    :param setup_ui: If true (default) use a terminal UI; otherwise 
        some other ui_factory must be assigned to `bzrlib.ui.ui_factory` by
        the caller.
    :param stdin, stdout, stderr: If provided, use these for terminal IO;
        otherwise use the files in `sys`.
    :return: A context manager for the use of bzrlib. The __exit__
        should be called by the caller before exiting their process or
        otherwise stopping use of bzrlib. Advanced callers can use
        BzrLibraryState directly.
    i(t
library_statettraceNtuiR)(tbzrlibR(R)t	bzrlib.uiRtstdintstdouttstderrR*tmake_ui_for_terminaltNonet
DefaultConfigtBzrLibraryStatet_start(
tsetup_uiR-R.R/R(R)R+t
ui_factoryttracertstate((s3/usr/lib/python2.7/dist-packages/bzrlib/__init__.pyt
initializes
cC@sddl}|jS(Ni(ttestst
test_suite(R:((s3/usr/lib/python2.7/dist-packages/bzrlib/__init__.pyR;s(iiisdevi(iii( t__doc__t
__future__Rttimet_start_timetcodecsRtIGNORE_FILENAMEt
__copyright__R
tapi_minimum_versionRtgetattrtFalseRtbzrlib.lazy_regexR+t
lazy_regextinstall_lazy_compilet__version__tversion_stringR%R t_fs_encR1tlookuptnameR&tglobal_statetTrueR9R;(((s3/usr/lib/python2.7/dist-packages/bzrlib/__init__.pyt<module> s6		=	$	(

Copyright © 2017 || Recoded By Mr.Bumblebee