~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_rstx.py

  • Committer: Dimitri John Ledkov
  • Date: 2014-05-08 01:28:12 UTC
  • mto: This revision was merged to the branch mainline in revision 6597.
  • Revision ID: dimitri.ledkov@canonical.com-20140508012812-5s4l8auzppf4yvsy
Jelmer: Don't pass blob to file.writelines(), but rather to file.write().

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