def get_url_without_trailing_slash(value):
 result = (value[:(-1)] if value.endswith('/') else value)
 return result

def get_url_without_trailing_slash ( value ) : result = ( value [ : ( - 1 ) ] if value . endswith ( '/' ) else value ) return result
function which strips a trailing slash from the provided url if one is present .