]> git.donarmstrong.com Git - lilypond.git/commitdiff
Lilypond-book: Variable name clash
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 7 Jul 2010 11:55:18 +0000 (13:55 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 18 Aug 2011 20:29:19 +0000 (22:29 +0200)
python/book_snippets.py

index aedee3ceefc417dcec85902b6ccc60381d5444d5..b4849a0dbba79c2953c543a5dbe66138677ad824 100644 (file)
@@ -752,16 +752,16 @@ printing diff against existing file." % filename)
             status = 0
             output = stdout.read ()
             status = stdout.close ()
-            error = stderr.read ()
+            err = stderr.read ()
 
         if not status:
             status = 0
         signal = 0x0f & status
-        if status or (not output and error):
+        if status or (not output and err):
             exit_status = status >> 8
             ly.error (_ ("`%s' failed (%d)") % (cmd, exit_status))
             ly.error (_ ("The error log is as follows:"))
-            ly.stderr_write (error)
+            ly.stderr_write (err)
             ly.stderr_write (stderr.read ())
             exit (status)