def normalize(prefix, link):
    """ normalize a path """
    # anchors
    if link.startswith("#"):
        return link

    if not link.startswith('/'): 
        link = link % "/%s"
    path = posixpath.normpath("%s%s" % (prefix, link))
    return  path
dataset/ETHPy150Open benoitc/hroute/hroute/util.py/normalize/swapped operands of `%`