grc: fix Action to str method

This commit is contained in:
Sebastian Koslowski 2015-11-24 16:32:49 +01:00
parent 56d2dd26b6
commit 17e2e03609

View File

@ -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)