-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
î:ïNc@@sdZddlmZd„Zd„Zedkr{ddlZeejddƒj	ƒZ
xee
ƒD]ZeGHqiWndS(	sKSimple parser for bzr's NEWS file.

Simple as this is, it's a bit over-powered for news_merge's needs, which only
cares about 'bullet' and 'everything else'.

This module can be run as a standalone Python program; pass it a filename and
it will print the parsed form of a file (a series of 2-tuples, see
simple_parse's docstring).
i(tabsolute_importcC@stdj|ƒƒS(sVSame as simple_parse, but takes an iterable of strs rather than a single
    str.
    t(tsimple_parsetjoin(tlines((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/news_merge/parser.pytsimple_parse_linesscc@sÜ|jdƒ}xÆ|D]¾}|jdƒr<d|fVqn|jddƒd}|jdƒrod|fVq|jdƒrŒd	|fVq|jd
ƒr©d|fVq|jƒdkrÉd
|fVqd|fVqWdS(s±Returns blocks, where each block is a 2-tuple (kind, text).
    
    :kind: one of 'heading', 'release', 'section', 'empty' or 'text'.
    :text: a str, including newlines.
    s

s###theadings
iiÿÿÿÿtreleases***tsections* tbulletRtemptyttextN(tsplitt
startswithtrsplittstrip(tcontenttblockstblockt	last_line((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/news_merge/parser.pyR%s
t__main__Nitrb(t__doc__t
__future__RRRt__name__tsystopentargvtreadRtresult(((sD/usr/lib/python2.7/dist-packages/bzrlib/plugins/news_merge/parser.pyt<module>s		

Copyright © 2017 || Recoded By Mr.Bumblebee