mirror of
https://github.com/gnuradio/gnuradio-companion.git
synced 2025-12-10 17:46:12 -06:00
grc: fix Action to str method
This commit is contained in:
parent
56d2dd26b6
commit
17e2e03609
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user