From bc4e0b3ba71250d92a7f45a036bcae7f5589e1a6 Mon Sep 17 00:00:00 2001
From: Ben Hilburn <ben.hilburn@ettus.com>
Date: Fri, 14 Oct 2016 14:21:07 -0400
Subject: Backport GRC Python code for Python-2.6.6+

---
 grc/core/FlowGraph.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'grc/core/FlowGraph.py')

diff --git a/grc/core/FlowGraph.py b/grc/core/FlowGraph.py
index 949eecaa71..48563eefb1 100644
--- a/grc/core/FlowGraph.py
+++ b/grc/core/FlowGraph.py
@@ -64,7 +64,7 @@ class FlowGraph(Element):
         self._options_block = self.new_block('options')
 
     def __str__(self):
-        return 'FlowGraph - {}({})'.format(self.get_option('title'), self.get_option('id'))
+        return 'FlowGraph - {0}({1})'.format(self.get_option('title'), self.get_option('id'))
 
     ##############################################
     # TODO: Move these to new generator package
@@ -461,7 +461,7 @@ class FlowGraph(Element):
                 self.connect(source_port, sink_port)
             except LookupError as e:
                 Messages.send_error_load(
-                    'Connection between {}({}) and {}({}) could not be made.\n\t{}'.format(
+                    'Connection between {0}({1}) and {2}({3}) could not be made.\n\t{4}'.format(
                         source_block_id, source_key, sink_block_id, sink_key, e))
                 errors = True
 
-- 
cgit v1.2.3