Ignore:
Timestamp:
03/24/19 08:15:59 (4 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Ran 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/timetable.py

    r879 r919  
    44
    55from mlx.gui.common import *
    6 from flightlist import ColumnDescriptor
     6from .flightlist import ColumnDescriptor
    77from mlx.rpc import ScheduledFlight
    88
     
    249249                    self._tooltips.set_tip(widget, "")
    250250                    self._tooltips.disable()
    251         except Exception, e:
    252             print e
     251        except Exception as e:
     252            print(e)
    253253            self._tooltips.set_tip(widget, "")
    254254            self._tooltips.disable()
     
    656656            typeFamilies.add(const.aircraftType2Family(aircraftType))
    657657
    658         for (typeFamily, checkButton) in self._typeFamilyButtons.iteritems():
     658        for (typeFamily, checkButton) in self._typeFamilyButtons.items():
    659659            checkButton.set_sensitive(typeFamily in typeFamilies)
    660660
     
    712712        """Update the timetable list."""
    713713        aircraftTypes = []
    714         for (aircraftFamily, button) in self._typeFamilyButtons.iteritems():
     714        for (aircraftFamily, button) in self._typeFamilyButtons.items():
    715715            if button.get_active():
    716716                aircraftTypes += const.aircraftFamily2Types[aircraftFamily]
Note: See TracChangeset for help on using the changeset viewer.