def sanitize_mount(mount):
    """Returns a quote-unquote sanitized mount path"""
    sanitized_mount = mount
    if sanitized_mount.startswith('/'):
        sanitized_mount = sanitized_mount[1:]

    if sanitized_mount.endswith('/'):
        sanitized_mount = sanitized_mount[:-1]

    sanitized_mount = sanitized_mount.replace('//', '/')
    return sanitized_mount
def sanitize_mount ( mount ) : sanitized_mount = mount if sanitized_mount . startswith ( '/' ) : sanitized_mount = sanitized_mount [ 1 : ] if sanitized_mount . endswith ( '/' ) : sanitized_mount = sanitized_mount [ : - 1 ] sanitized_mount = sanitized_mount . replace ( '//' , '/' ) return sanitized_mount
Returns a quote-unquote sanitized mount path