(self, server)
return server
Check if the server URL starts with a HTTP or HTTPS scheme, fall back to http if not present
Check if the server URL starts with a HTTP or HTTPS scheme, fall back to http if not present
Check if the server URL starts with a HTTP or HTTPS scheme fall back to http if not present
def _normalize_server_url(self, server):
        """
        Check if the server URL starts with a HTTP or HTTPS scheme, fall back to http if not present
        """
        server = server if server.startswith(("http://", "https://")) else "http://{}".format(server)
        return server
def _normalize_server_url ( self , server ) : server = server if server . startswith ( ( "http://" , "https://" ) ) else "http://{}" . format ( server ) return server