~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_rstx.py

  • Committer: Patch Queue Manager
  • Date: 2014-05-08 02:56:29 UTC
  • mfrom: (6596.1.1 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20140508025629-de62pqrditrp349y
(richard-wilbur) Jelmer: Don't pass blob to file.writelines(),
 but rather to file.write(). (Dimitri John Ledkov)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
135
135
    f.close()
136
136
    return topic_id
137
137