-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
î:ïNc@@srdZddlmZddlmZddlmZmZddlm	Z	de	j
fd„ƒYZd„Zd	S(
s÷Transport implementation that adapts another transport to look like NFS.

Currently this means that the rename() call will raise ResourceBusy when a
target path is a directory.

To get a fake nfs transport use get_transport('fakenfs+' + real_url)
i(tabsolute_import(tS_ISDIR(terrorsturlutils(t	decoratortFakeNFSTransportDecoratorcB@s/eZdZed„ƒZd„Zd„ZRS(s.A transport that behaves like NFS, for testingcC@sdS(s/FakeNFS transports are identified by 'fakenfs+'sfakenfs+((tself((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pyt_get_url_prefix'scC@ssy|jj||ƒWnUtjtjfk
rn}|jj|ƒ}t|jƒrhtj|ƒ‚qo‚nXdS(s«See Transport.rename().

        This variation on rename converts DirectoryNotEmpty and FileExists
        errors into ResourceBusy if the target is a directory.
        N(	t
_decoratedtrenameRtDirectoryNotEmptyt
FileExistststatRtst_modetResourceBusy(Rtrel_fromtrel_toteR((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pyR	,scC@sCtj|ƒjdƒr3tj|j|ƒƒ‚n|jj|ƒS(Ns.nfs(Rtbasenamet
startswithRRtabspathRtdelete(Rtrelpath((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pyR=s(t__name__t
__module__t__doc__tclassmethodRR	R(((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pyR$s	cC@s ddlm}t|jfgS(s.Return the permutations to be used in testing.i(ttest_server(tbzrlib.testsRRt
FakeNFSServer(R((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pytget_test_permutationsCsN(
Rt
__future__RRRtbzrlibRRtbzrlib.transportRtTransportDecoratorRR(((s</usr/lib/python2.7/dist-packages/bzrlib/transport/fakenfs.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee