def _rewrite_server_name(server_name, new_port):
    """Rewrite server port in ``server_name`` with ``new_port`` value."""
    sep = ':'
    if server_name in sep:
        server_name, port = server_name.split(sep, 1)
    return sep.join((server_name, new_port))
dataset/ETHPy150Open vitalk/pytest-flask/pytest_flask/fixtures.py/_rewrite_server_name/swapped operands of `in`