/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 tools/rst2prettyhtml.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 19:38:57 UTC
  • mfrom: (7143.16.21 even-more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116193857-bs5oma2655sp55qu
Fix another dozen flake8 errors.

Merged from https://code.launchpad.net/~jelmer/brz/even-more-cleanups/+merge/358931

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    # prevent docutils from autoclosing the StringIO
30
30
    xhtml_file.close = lambda: None
31
31
    xhtml = publish_file(rest_file, writer_name='html', destination=xhtml_file,
32
 
                         settings_overrides={"doctitle_xform": 0} 
33
 
    
34
 
    )
 
32
                         settings_overrides={"doctitle_xform": 0})
35
33
    xhtml_file.seek(0)
36
34
    xml = HTMLTreeBuilder.parse(xhtml_file)
37
35
    head = xml.find('head')
38
36
    body = xml.find('body')
39
37
    assert head is not None
40
38
    assert body is not None
41
 
    template=kid.Template(file=template_name, 
42
 
                          head=head, body=body)
 
39
    template = kid.Template(file=template_name, head=head, body=body)
43
40
    return (template.serialize(output="html"))
44
41
 
45
42