Ignore:
Timestamp:
04/27/19 12:11:14 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Eliminated calls to cmp() (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r919 r923  
    791791                result.flights.append(flight)
    792792
    793             result.flights.sort(cmp = lambda flight1, flight2:
    794                                 cmp(flight1.departureTime,
    795                                     flight2.departureTime))
     793            result.flights.sort(key = lambda flight: flight.departureTime)
    796794
    797795        f.close()
Note: See TracChangeset for help on using the changeset viewer.