-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ s d Z d d l m Z d d l m Z d d l Z d d l m Z d Z e j d ƒ Z
d „ Z d „ Z d
e
f d „ ƒ YZ d e
f d
„ ƒ YZ d e
f d „ ƒ YZ d „ Z d e
f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e
f d „ ƒ YZ d „ Z d S( st Container format for Bazaar data.
"Containers" and "records" are described in
doc/developers/container-format.txt.
i ( t absolute_import( t StringION( t errorss) Bazaar pack format 1 (introduced in 0.18)s [
]c C@ s2 t j | ƒ d k r. t j d | f ƒ ‚ n d S( sÜ Do some basic checking of 'name'.
At the moment, this just checks that there are no whitespace characters in a
name.
:raises InvalidRecordError: if name is not valid.
:seealso: _check_name_encoding
s %r is not a valid name.N( t _whitespace_ret searcht NoneR t InvalidRecordError( t name( ( s/ /usr/lib/python2.7/dist-packages/bzrlib/pack.pyt _check_name% s c C@ s@ y | j d ƒ Wn( t k
r; } t j t | ƒ ƒ ‚ n Xd S( sß Check that 'name' is valid UTF-8.
This is separate from _check_name because UTF-8 decoding is relatively
expensive, and we usually want to avoid it.
:raises InvalidRecordError: if name is not valid UTF-8.
s utf-8N( t decodet UnicodeDecodeErrorR R t str( R t e( ( s/ /usr/lib/python2.7/dist-packages/bzrlib/pack.pyt _check_name_encoding2 s t ContainerSerialiserc B@ s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( sÍ A helper class for serialising containers.
It simply returns bytes from method calls to 'begin', 'end' and
'bytes_record'. You may find ContainerWriter to be a more convenient
interface.
c C@ s t d S( s&