Cleanup superfluous string comprehension and coersion

Remove the superfluous string comprehension and coersion to string
type in a join within the keystone.notifications module. The elements
in the namedtuple are already string types.

Change-Id: I107102fabc2f6671e10bcf1b5db40529fdb19d69
This commit is contained in:
Morgan Fainberg 2014-08-28 08:41:40 -07:00
parent 7b609714b2
commit e536127afb
1 changed files with 1 additions and 2 deletions

View File

@ -164,8 +164,7 @@ def register_event_callback(event, resource_type, callbacks):
if event not in ACTIONS:
raise ValueError(_('%(event)s is not a valid notification event, must '
'be one of: %(actions)s') %
{'event': event,
'actions': ', '.join(str(a) for a in ACTIONS)})
{'event': event, 'actions': ', '.join(ACTIONS)})
if not hasattr(callbacks, '__iter__'):
callbacks = [callbacks]