diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2016-10-14 14:21:07 -0400 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2016-10-17 17:07:23 -0400 |
commit | bc4e0b3ba71250d92a7f45a036bcae7f5589e1a6 (patch) | |
tree | e2c7aee9699b8d87b5d9ee3b6d04ed7321e48484 /grc/gui/FlowGraph.py | |
parent | 1624da7772f1ff57232e2f2024281547d483629c (diff) |
Backport GRC Python code for Python-2.6.6+
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r-- | grc/gui/FlowGraph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index f98aec41d5..44a8ae24a9 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -77,7 +77,7 @@ class FlowGraph(Element, _Flowgraph): a unique id """ for index in count(): - block_id = '{}_{}'.format(base_id, index) + block_id = '{0}_{1}'.format(base_id, index) if block_id not in (b.get_id() for b in self.blocks): break return block_id |