~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_rstx.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
Written by the Bazaar community.
21
21
"""
22
22
 
23
 
import os
24
 
import sys
 
23
from __future__ import absolute_import
 
24
 
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.writelines(text)
 
134
    f.write(text.encode('utf-8'))
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
148
147
 
149
148
"""
150
149