~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to dotgraph.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-22 23:08:00 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: john@arbash-meinel.com-20050922230800-49074635850e0552
Fix datestamp, reuse pre-layed out dot file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
    tempdir = tempfile.mkdtemp()
213
213
    try:
214
214
        temp_dot = os.path.join(tempdir, 'temp.dot')
215
 
        dot = open(temp_dot, 'wb')
216
 
        for fragment in input:
217
 
            dot.write(fragment)
218
 
        dot.close()
 
215
        status = invoke_dot(input, temp_dot, file_type='dot')
 
216
 
219
217
        dot = open(temp_dot)
220
218
        temp_file = os.path.join(tempdir, 'temp.cmapx')
221
219
        status = invoke_dot(dot, temp_file, 'cmapx')