Merge "Cleanup superfluous string comprehension and coersion"

This commit is contained in:
Jenkins 2014-09-04 05:11:37 +00:00 committed by Gerrit Code Review
commit 1f52b64414
1 changed files with 1 additions and 2 deletions

View File

@ -166,8 +166,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]