def join(parent, child):
    """

    Appends the child to the parent, taking care of the slashes. The resulting
    url does not have a trailing slash.

    """
    return (parent.rstrip("/") + "/" + child.lstrip("/")).rstrip("/")