def split_env(url):
 if (not url.startswith('salt://')):
  return (url, None)
 (path, senv) = parse(url)
 return (create(path), senv)

def split_env ( url ) : if ( not url . startswith ( 'salt://' ) ) : return ( url , None ) ( path , senv ) = parse ( url ) return ( create ( path ) , senv )
remove the saltenv query parameter from a salt:// url .