Changeset 968:1128dfecb282


Ignore:
Timestamp:
05/16/19 17:18:27 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Changed some variable names generated by the 2to3 into more readable ones (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r960 r968  
    17071707    """A model handler for the PMDG Boeing 737NG model."""
    17081708    @staticmethod
    1709     def doesHandle(aircraft, xxx_todo_changeme):
     1709    def doesHandle(aircraft, aircraftName):
    17101710        """Determine if this model handler handles the aircraft with the given
    17111711        name."""
    1712         (name, airPath) = xxx_todo_changeme
     1712        (name, airPath) = aircraftName
    17131713        return aircraft.type in [const.AIRCRAFT_B736,
    17141714                                 const.AIRCRAFT_B737,
     
    18431843    """Model handler for the Dreamwings Dash 8-Q400."""
    18441844    @staticmethod
    1845     def doesHandle(aircraft, xxx_todo_changeme1):
     1845    def doesHandle(aircraft, aircraftName):
    18461846        """Determine if this model handler handles the aircraft with the given
    18471847        name."""
    1848         (name, airPath) = xxx_todo_changeme1
     1848        (name, airPath) = aircraftName
    18491849        return aircraft.type==const.AIRCRAFT_DH8D and \
    18501850            (name.find("Dreamwings")!=-1 or airPath.find("Dreamwings")!=-1) and \
     
    18811881    """Model handler for the Majestic Dash 8-Q400."""
    18821882    @staticmethod
    1883     def doesHandle(aircraft, xxx_todo_changeme2):
     1883    def doesHandle(aircraft, aircraftName):
    18841884        """Determine if this model handler handles the aircraft with the given
    18851885        name."""
    1886         (name, airPath) = xxx_todo_changeme2
     1886        (name, airPath) = aircraftName
    18871887        return aircraft.type==const.AIRCRAFT_DH8D and \
    18881888            (name.find("MJC8Q400")!=-1 or \
     
    19601960    """Model for the Digital Aviation F70 implementation on FS9."""
    19611961    @staticmethod
    1962     def doesHandle(aircraft, xxx_todo_changeme3):
     1962    def doesHandle(aircraft, aircraftName):
    19631963        """Determine if this model handler handles the aircraft with the given
    19641964        name."""
    1965         (name, airPath) = xxx_todo_changeme3
     1965        (name, airPath) = aircraftName
    19661966        return aircraft.type == const.AIRCRAFT_F70 and \
    19671967               (airPath.endswith("fokker70_2k4_v4.1.air") or
     
    21502150    """Project Tupolev Tu-154."""
    21512151    @staticmethod
    2152     def doesHandle(aircraft, xxx_todo_changeme4):
     2152    def doesHandle(aircraft, aircraftName):
    21532153        """Determine if this model handler handles the aircraft with the given
    21542154        name."""
    2155         (name, airPath) = xxx_todo_changeme4
     2155        (name, airPath) = aircraftName
    21562156        print("PTT154Model.doesHandle", aircraft.type, name, airPath)
    21572157        return aircraft.type==const.AIRCRAFT_T154 and \
Note: See TracChangeset for help on using the changeset viewer.