human
Solve the following python programming problem given the following code:
def convert_to_markdown(contributors_map, include_tickets = False) : 
    def compare(item1, item2) : 
        lastname1 = item1.split (' ') [(- 1)].lower () 
        lastname2 = item2.split (' ') [(- 1)].lower () 
        return cmp (lastname1, lastname2) 
names = contributors_map.keys () 
    names = sorted (names, cmp = compare) 
    result = [] 
    for name in names : 
        tickets = contributors_map [name] 
        tickets_string = [] 
        for ticket in tickets : 
            if ('-' not in ticket) : 
                continue 
number = ticket.split ('-') [1] 
            if ticket.startswith ('LIBCLOUD-') : 
                url = (JIRA_URL % number) 
else : 
                if (ticket.startswith ('GITHUB-') or ticket.startswith ('GH-')) : 
                    url = (GITHUB_URL % number) 
values = { 
                'ticket' : ticket, 
                'url' : url, 
} 
            tickets_string.append (('[%(ticket)s](%(url)s)' % values)) 
tickets_string = ', '.join (tickets_string) 
        if ticket : 
            line = ('* %(name)s: %(tickets)s' % { 
                'name' : name, 
                'tickets' : tickets_string, 
}) 
else : 
            line = ('* %(name)s' % { 
                'name' : name, 
}) 
result.append (line.strip ()) 
result = '
'.join (result) 
    return result 

    
    

    Fix the buggy line: if ticket :
assistant
#Here is Python program to fix the buggy line: if ticket :
.

if include_tickets :