GitLab: Fix minor bytes/text types issue.

This commit is contained in:
Tim Abbott 2016-09-25 23:29:36 -07:00
parent a3eb0be52a
commit 49faad7bb1
1 changed files with 2 additions and 2 deletions

View File

@ -193,9 +193,9 @@ def get_body_based_on_event(event):
return EVENT_FUNCTION_MAPPER[event]
def get_subject_based_on_event(event, payload):
# type: (str, Dict[str, Any]) -> str
# type: (str, Dict[str, Any]) -> text_type
if event == 'Push Hook':
return "{} / {}".format(get_repo_name(payload), get_branch_name(payload))
return u"{} / {}".format(get_repo_name(payload), get_branch_name(payload))
return get_repo_name(payload)
def get_event(request, payload):