Follow CBSDFW.COM: Facebook | Twitter

DALLAS (AP) — Southwest Airlines says travel demand has picked up and the long decline in average fares could be ending soon.

READ MORE: Mask Up, Have Fun At Friday's State Fair Of Texas Opening

The comments helped push Southwest shares 9 percent higher and led a rally in airline stocks.

Southwest Airlines Co. reported Thursday that fourth-quarter profit slipped partly on higher costs for fuel and labor. But the results topped Wall Street expectations, and investors focused on CEO Gary Kelly’s upbeat comments about pricing power.

Kelly said that travel demand has picked up since the November election on an increase in business travel and higher average prices for last-minute tickets — similar to recent comments by Delta and United executives.

Kelly attributed the demand to a sense of certainty after the election, the possibility of tax reform that will boost the economy, and a “broader tide of optimism.” He admitted that he had no data to back up his hunch.

JetBlue, on the other hand, reported weaker pricing in January, and its shares fell 3 percent.

Southwest sees a possible end to the two-year trend of lower average fares right around the corner. It predicted that a key measure of revenue per mile will be flat to down 1 percent in the first quarter, an improvement over the 2.9 percent decline in the fourth quarter.

The average fare on Southwest fell more than $5, or 4 percent, to $144.43 in the fourth quarter. It was $158 two years ago.

The airlines are trying to push prices higher by slowing the growth of new flights. Southwest expects to shrink its fleet of planes this year by retiring its oldest Boeing 737 jets, although the number of seats will rise because of the addition of newer, larger 737s.

Southwest slightly raised its planned 2017 domestic growth in seats, which didn’t seem to rattle investors the way that a similar announcement did in 2015. Stifel analyst Joseph DeNardi said he assumed “that this doesn’t become a recurring theme” because it would hurt airline stocks broadly.

READ MORE: Garland ISD Offers Mexican American, African American Studies Courses

The Dallas-based airline said it earned $522 million in the fourth quarter, down 3 percent, or $14 million, from a year earlier. Excluding losses on fuel-hedging contracts, the company said it would have earned 75 cents per share. The 16 analysts surveyed by FactSet expected on average 70 cents per share.

Revenue rose 2 percent to $5.08 billion, also beating Wall Street forecasts.

Operating costs climbed 7 percent, led by a 19 percent increase in fuel spending.

Southwest expects higher costs to continue in 2017, partly the result of pay raises for union workers covered by new contracts.

For all of 2016, Southwest earned a record $2.24 billion. For those who keep track — and Southwest does — that is its 44th straight profitable year, a streak unmatched by any other U.S. airline. Southwest carries more passengers in the U.S. than anyone, although its smaller international network places it behind American, Delta and United in total size.

JetBlue Airways Corp. said fourth-quarter profit fell 9 percent to $172 million, as higher costs offset a 3 percent increase in revenue. The New York-based carrier earned 50 cents per share, a penny better than analysts expected.

The average fourth-quarter fare fell more than $6, or 4 percent, to $155 compared with a year ago, and executives said that revenue for each seat flown one mile, a proxy for average fares, was falling 8 percent or 9 percent in January, a surprisingly weak outlook following comments from rivals.

On a conference call, analysts pressed JetBlue leaders about cutting passenger-carrying capacity to boost fares. Executive Vice President Marty St. George said the airline has reduced its growth rate and might do more cutting: “We are on it, and we’ll be announcing something soon.” He added that booking trends in February, March and April looked better than January, but the shares kept falling as executives kept talking.

Cowen and Co. analyst Helane Becker said there was “no way to sugarcoat” JetBlue’s explanation of lower revenue per seat. “It’s just bad.”

Southwest shares closed up $4.46 to $53.92, while JetBlue sank 67 cents to $21.10.

MORE NEWS: 2 Men Arrested In Wylie On Human Trafficking Charges

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)