The gas line inside the pump has another smaller pipe called the venturi that runs alongside it. As the gas levels rise, the end of this venturi pipe submerges in the fuel. This chokes off the air pressure, stopping the gas from flowing further.