def remove_ports(now_ports, before_ports):
    ports = now_ports[:]
    for port in before_ports:
        if port in ports:
            ports.remove(port)
    return ports
dataset/ETHPy150Open Robot-Will/Stino/stino/pyarduino/base/serial_port.py/remove_ports/original