Ignore:
Timestamp:
04/27/19 12:11:14 (6 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/gui/timetable.py

    r919 r923  
    752752        planes = [plane for plane in fleet
    753753                  if plane.aircraftType == aircraftType]
    754         planes.sort(cmp = lambda p1, p2: cmp(p1.tailNumber, p2.tailNumber))
     754        planes.sort(key = lambda p: p.tailNumber)
    755755
    756756        dialog = BookDialog(self, flightPair, planes)
Note: See TracChangeset for help on using the changeset viewer.