commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 15/23: grc: fix Action to str method


From: git
Subject: [Commit-gnuradio] [gnuradio] 15/23: grc: fix Action to str method
Date: Sat, 28 Nov 2015 21:18:08 +0000 (UTC)

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

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 461152d46e6db790e37b09bd3b92035b62d7091f
Author: Sebastian Koslowski <address@hidden>
Date:   Tue Nov 24 16:32:49 2015 +0100

    grc: fix Action to str method
---
 grc/gui/Actions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py
index d646722..1322dca 100644
--- a/grc/gui/Actions.py
+++ b/grc/gui/Actions.py
@@ -98,9 +98,9 @@ class _ActionBase(object):
         The string representation should be the name of the action id.
         Try to find the action id for this action by searching this module.
         """
-        for name, value in globals():
+        for name, value in globals().iteritems():
             if value == self:
-                return value
+                return name
         return self.get_name()
 
     def __repr__(self): return str(self)



reply via email to

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