Changeset 72:3e3138e44f84

Show
Ignore:
Timestamp:
02/28/09 14:53:52 (3 years ago)
Author:
"Felix Schwarz <felix.schwarz@…
Branch:
default
Message:

cleanup assembly script - tempfile can clean up itself

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • assemble_source_release.py

    r71 r72  
    1111def build_documentation(project_dir): 
    1212    doc_dir = os.path.join(project_dir, 'docs') 
    13     temp_file, temp_name = tempfile.mkstemp() 
     13    temp_file = tempfile.TemporaryFile() 
    1414    # We don't need any output on stdout 
    1515    subprocess.call(['make', 'html'], cwd=doc_dir, stdout=temp_file) 
    16     os.unlink(temp_name) 
    1716 
    1817def make_relative_filename(topdir, filename):