-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
º£Pc@@sedZddlmZdgZddlZddlmZeeƒdƒdefd„ƒYZ	dS(s9The core state needed to make use of bzr is managed here.i(tabsolute_importtBzrLibraryStateN(tlazy_importsl
from bzrlib import (
    cleanup,
    config,
    osutils,
    symbol_versioning,
    trace,
    ui,
    )
cB@s2eZdZd„Zd„Zd„Zd„ZRS(s+The state about how bzrlib has been configured.

    This is the core state needed to make use of bzr. The current instance is
    currently always exposed as bzrlib.global_state, but we desired to move
    to a point where no global state is needed at all.

    :ivar saved_state: The bzrlib.global_state at the time __enter__ was
        called.
    :ivar cleanups: An ObjectWithCleanups which can be used for cleanups that
        should occur when the use of bzrlib is completed. This is initialised
        in __enter__ and executed in __exit__.
    cC@s7||_||_tjƒ|_i|_t|_dS(sECreate library start for normal use of bzrlib.

        Most applications that embed bzrlib, including bzr itself, should just
        call bzrlib.initialize(), but it is possible to use the state class
        directly. The initialize() function provides sensible defaults for a
        CLI program, such as a text UI factory.

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

        BzrLibraryState implements the Python 2.5 Context Manager protocol
        PEP343, and can be used with the with statement. Upon __enter__ the
        global variables in use by bzr are set, and they are cleared on
        __exit__.

        :param ui: A bzrlib.ui.ui_factory to use.
        :param trace: A bzrlib.trace.Config context manager to use, perhaps
            bzrlib.trace.DefaultConfig.
        N(t_uit_tracetconfigtCommandLineStoretcmdline_overridest
config_storestFalsetstarted(tselftuittrace((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyt__init__6s
			cC@s|js|jƒn|S(N(R
t_start(R((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyt	__enter__Ss	
cC@s›tjƒ|_tjddkrA|jjtjdtƒƒn|j	j
ƒtjj|_
|jtj_|jj
ƒtj|_|t_t|_dS(sDo all initialization.itfinaltoverrideN(tcleanuptObjectWithCleanupstcleanupstbzrlibtversion_infotadd_cleanuptsymbol_versioningtsuppress_deprecation_warningstTrueRRRt
ui_factoryt_orig_uiRtglobal_statetsaved_stateR
(R((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyRXs	

	cC@s¬|dkr9x*|jjƒD]\}}|jƒqWn|jjƒtjƒtjƒt	j
ƒ|jjdddƒ|j
jdddƒ|jt_|jt_tS(N(tNoneRt	iteritemstsave_changesRtcleanup_nowR
t_flush_stdout_stderrt_flush_tracetosutilstreport_extension_load_failuresRt__exit__RRRRRRRR	(Rtexc_typetexc_valtexc_tbtktstore((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyR(ns



(t__name__t
__module__t__doc__RRRR((((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyR(s
			(
R0t
__future__Rt__all__Rtbzrlib.lazy_importRtglobalstobjectR(((s8/usr/lib/python2.7/dist-packages/bzrlib/library_state.pyt<module>s			

Copyright © 2017 || Recoded By Mr.Bumblebee