commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 06/16: grc: format xml fail msg to support


From: git
Subject: [Commit-gnuradio] [gnuradio] 06/16: grc: format xml fail msg to support python 2.6
Date: Sun, 16 Feb 2014 21:11:20 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit 4a6ecef88c23e69d9435a6bb4f59e0bc87ec36dc
Author: riatsila <address@hidden>
Date:   Thu Feb 6 20:03:36 2014 +0000

    grc: format xml fail msg to support python 2.6
    
    In Python 2.6 arguments are needed in the string being formatted, otherwise 
the error message causes another error.
---
 grc/gui/Messages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grc/gui/Messages.py b/grc/gui/Messages.py
index a6620aa..c470645 100644
--- a/grc/gui/Messages.py
+++ b/grc/gui/Messages.py
@@ -56,7 +56,7 @@ def send_page_switch(file_path):
 ################# functions for loading blocks 
########################################
 def send_xml_errors_if_any(xml_failures):
     if xml_failures:
-        send('\nXML parser: Found {} erroneous XML file{} while loading the 
block tree '
+        send('\nXML parser: Found {0} erroneous XML file{1} while loading the 
block tree '
              '(see "Help/Parser errors" for 
details)\n'.format(len(xml_failures), 's' if len(xml_failures) > 1 else ''))
 
 ################# functions for loading flow graphs 
########################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]