def _parse_link_header(headers):
links = {}<EOL>if '<STR_LIT>' in headers:<EOL><INDENT>link_headers = headers['<STR_LIT>'].split('<STR_LIT:U+002CU+0020>')<EOL>for link_header in link_headers:<EOL><INDENT>(url, rel) = link_header.split('<STR_LIT>')<EOL>url = url[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL>rel = rel[<NUM_LIT:5>:-<NUM_LIT:1>]<EOL>links[rel] = url<EOL><DEDENT><DEDENT>return links<EOL>
Parses Github's link header for pagination.

    TODO eventually use a github client for this