-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
î:ïNc@@sXdZddlmZddlZddlmZdejfd„ƒYZd„ZdS(sBFake transport with some restrictions of Windows VFAT filesystems.

VFAT on Windows has several restrictions that are not present on unix
filesystems, which are imposed by this transport.

VFAT is strictly 8-bit using codepages to represent non-ascii characters.
This implementation currently doesn't model the codepage but just insists
on only ascii characters being written.

Restrictions imposed by this transport:

 * filenames are squashed to lowercase
 * filenames containing non-ascii characters are not allowed
 * filenames containing the characters "@<>" are not allowed
   (there should be more?)

Some other restrictions are not implemented yet, but possibly could be:

 * open files can't be deleted or renamed
 * directories containing open files can't be renamed
 * special device names (NUL, LPT, ...) are not allowed

i(tabsolute_importN(t	decoratortFakeVFATTransportDecoratorcB@sbeZdZd„Zed„ƒZd„Zd„Zd	d„Z	d„Z
d„Zd	d„ZRS(
sRA decorator that can convert any transport to be readonly.

    This is requested via the 'vfat+' prefix to get_transport().

    This is intended only for use in testing and doesn't implement every
    method very well yet.

    This transport is typically layered on a local or memory transport
    which actually stored the files.
    cC@stS(s-See Transport._can_roundtrip_unix_modebits().(tFalse(tself((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt_can_roundtrip_unix_modebitsDscC@sdS(s5Readonly transport decorators are invoked via 'vfat+'svfat+((R((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt_get_url_prefixHscC@s/tjd|ƒr%td|ƒ‚n|jƒS(s®Return vfat-squashed filename.

        The name is returned as it will be stored on disk.  This raises an
        error if there are invalid characters in the name.
        s[?*:;<>]s(illegal characters for VFAT filename: %r(tretsearcht
ValueErrortlower(Rtname((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt_squash_nameMscC@s|jj|j|ƒƒS(N(t
_decoratedtgetR(Rtrelpath((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyRWscC@s|jj|j|ƒdƒS(Nií(R
tmkdirR(RRtmode((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyRZscC@s|jj|j|ƒƒS(N(R
thasR(RR((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR]scC@s|jj|j|ƒ|ƒS(N(R
treadvR(RRtoffsets((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt_readv`scC@s|jj|j|ƒ||ƒS(N(R
tput_fileR(RRtfR((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyRcsN(
t__name__t
__module__t__doc__RtclassmethodRRRtNoneRRRR(((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR8s
		
			cC@s ddlm}t|jfgS(s.Return the permutations to be used in testing.i(ttest_server(tbzrlib.testsRRtFakeVFATServer(R((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pytget_test_permutationsgs(	Rt
__future__RRtbzrlib.transportRtTransportDecoratorRR (((s=/usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt<module>'s
/

Copyright © 2017 || Recoded By Mr.Bumblebee