]> git.donarmstrong.com Git - lilypond.git/commitdiff
(get_latex_textwidth): explicitly close tmphandle.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 12 Mar 2006 17:51:31 +0000 (17:51 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 12 Mar 2006 17:51:31 +0000 (17:51 +0000)
ChangeLog
scripts/lilypond-book.py

index a89782355e2fd57126d91eed257fbc3c4946a0f0..01e0010eaa22383739b62aff94a1e6864f1f6ece 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,10 @@
 2006-03-12  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scripts/lilypond-book.py (get_latex_textwidth): explicitly close tmphandle.
+
        * python/lilylib.py (system): rewrite system() using
        subprocess. Remove >& redirection trickery.
 
-       * scripts/convert-ly.py (get_option_parser): 
-
 2006-03-11  Graham Percival  <gpermus@gmail.com>
 
        * Documentation/user/ changing-defaults, global, scheme-tutorial,
index 5cfe971b6d5a7c94cbe65c931642a7a0537fc72b..322ce9a39b565f78238115902c46a2c622ff3f8c 100644 (file)
@@ -1401,7 +1401,11 @@ def get_latex_textwidth (source):
        (handle, tmpfile) = tempfile.mkstemp('.tex')
        logfile = os.path.splitext (tmpfile)[0] + '.log'
        logfile = os.path.split (logfile)[1]
-       open (tmpfile,'w').write (latex_document)
+
+       tmp_handle = open (tmpfile,'w')
+       tmp_handle.write (latex_document)
+       tmp_handle.close ()
+       
        ly.system ('latex %s' % tmpfile, be_verbose=global_options.verbose)
        parameter_string = open (logfile).read()