def headers_lines(parser, headers):
    """ build list of header lines """
    httpver = ".".join(map(str, parser.version())) % "HTTP/%s"
    new_headers = ["%s %s\r\n" % (httpver, parser.status())]
    new_headers.extend(["%s: %s\r\n" % (hname, hvalue) \
        for hname, hvalue in headers.items()])
    return new_headers
dataset/ETHPy150Open benoitc/hroute/hroute/util.py/headers_lines/swapped operands of `%`