def add_slash(url):
    """Adds a trailing slash for consistency in urls."""
    if not url.endswith('/'):
        url = url + '/'
    return url
dataset/ETHPy150Open toastdriven/itty/itty.py/add_slash/original