/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/news_merge/parser.py

  • Committer: Breezy landing bot
  • Author(s): Colin Watson
  • Date: 2020-11-16 21:47:08 UTC
  • mfrom: (7521.1.1 remove-lp-workaround)
  • Revision ID: breezy.the.bot@gmail.com-20201116214708-jos209mgxi41oy15
Remove breezy.git workaround for bazaar.launchpad.net.

Merged from https://code.launchpad.net/~cjwatson/brz/remove-lp-workaround/+merge/393710

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
simple_parse's docstring).
25
25
"""
26
26
 
27
 
from __future__ import absolute_import
28
 
 
29
 
 
30
27
def simple_parse_lines(lines):
31
28
    """Same as simple_parse, but takes an iterable of strs rather than a single
32
29
    str.
36
33
 
37
34
def simple_parse(content):
38
35
    """Returns blocks, where each block is a 2-tuple (kind, text).
39
 
    
 
36
 
40
37
    :kind: one of 'heading', 'release', 'section', 'empty' or 'text'.
41
38
    :text: a str, including newlines.
42
39
    """
68
65
    import sys
69
66
    content = open(sys.argv[1], 'rb').read()
70
67
    for result in simple_parse(content):
71
 
        print result
 
68
        print(result)