~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_rstx.py

  • Committer: Andrew Bennetts
  • Date: 2010-10-08 08:15:14 UTC
  • mto: This revision was merged to the branch mainline in revision 5498.
  • Revision ID: andrew.bennetts@canonical.com-20101008081514-dviqzrdfwyzsqbz2
Split NEWS into per-release doc/en/release-notes/bzr-*.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
Written by the Bazaar community.
21
21
"""
22
22
 
23
 
from __future__ import absolute_import
24
 
 
 
23
import os
 
24
import sys
25
25
import time
26
26
 
27
27
import bzrlib
131
131
    topic_id = "%s-%s" % (topic, "help")
132
132
    filename = bzrlib.osutils.pathjoin(output_dir, topic_id + ".txt")
133
133
    f =  open(filename, "w")
134
 
    f.write(text.encode('utf-8'))
 
134
    f.writelines(text)
135
135
    f.close()
136
136
    return topic_id
137
137
 
144
144
..     %(bzrcmd)s help commands
145
145
..     %(bzrcmd)s help <cmd>
146
146
..
 
147
.. Generation time: %(timestamp)s
147
148
 
148
149
"""
149
150