Strip whitespace from ALL the things.

This commit is contained in:
Jimmy Zelinskie 2014-11-24 16:07:38 -05:00
parent f6dd8b0a4d
commit 716d7a737b
171 changed files with 807 additions and 807 deletions

View file

@ -40,7 +40,7 @@ class NotificationMethod(object):
Validates that the notification can be created with the given data. Throws
a CannotValidateNotificationMethodException on failure.
"""
raise NotImplementedError
raise NotImplementedError
def perform(self, notification, event_handler, notification_data):
"""
@ -70,7 +70,7 @@ class QuayNotificationMethod(NotificationMethod):
status, err_message, target_users = self.find_targets(repository, config_data)
if err_message:
raise CannotValidateNotificationMethodException(err_message)
def find_targets(self, repository, config_data):
target_info = config_data['target']
@ -100,7 +100,7 @@ class QuayNotificationMethod(NotificationMethod):
except model.InvalidTeamException:
# Probably deleted.
return (True, 'Unknown team %s' % target_info['name'], None)
# Lookup the team's members
return (True, None, model.get_organization_team_members(team.id))
@ -194,7 +194,7 @@ class WebhookMethod(NotificationMethod):
class FlowdockMethod(NotificationMethod):
""" Method for sending notifications to Flowdock via the Team Inbox API:
https://www.flowdock.com/api/team-inbox
https://www.flowdock.com/api/team-inbox
"""
@classmethod
def method_name(cls):
@ -288,7 +288,7 @@ class HipchatMethod(NotificationMethod):
'color': color,
'message': event_handler.get_message(notification_data['event_data'], notification_data),
'notify': level == 'error',
'message_format': 'html',
'message_format': 'html',
}
try: