Changeset 1004:09bc17c7f94e for src/mlx


Ignore:
Timestamp:
07/06/19 14:15:10 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Removed the xxx_todo stuff generated by 2to3 (re #347).

Location:
src/mlx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r968 r1004  
    10931093            self._handler.disconnect()
    10941094
    1095     def _handleNumHotkeys(self, data, xxx_todo_changeme5):
     1095    def _handleNumHotkeys(self, data, hotkeySet):
    10961096        """Handle the result of the query of the number of hotkeys"""
    1097         (id, generation) = xxx_todo_changeme5
     1097        (id, generation) = hotkeySet
    10981098        with self._hotkeyLock:
    10991099            if id==self._hotkeySetID and generation==self._hotkeySetGeneration:
     
    11021102                data = [(0x3210 + i*4, "d") for i in range(0, numHotkeys)]
    11031103                self._handler.requestRead(data, self._handleHotkeyTable,
    1104                                           (id, generation))
     1104                                          hotkeySet)
    11051105
    11061106    def _setupHotkeys(self, data):
     
    11451145        return writeData
    11461146
    1147     def _handleHotkeyTable(self, data, xxx_todo_changeme6):
     1147    def _handleHotkeyTable(self, data, hotkeySet):
    11481148        """Handle the result of the query of the hotkey table."""
    1149         (id, generation) = xxx_todo_changeme6
     1149        (id, generation) = hotkeySet
    11501150        with self._hotkeyLock:
    11511151            if id==self._hotkeySetID and generation==self._hotkeySetGeneration:
     
    11531153                self._handler.requestWrite(writeData,
    11541154                                           self._handleHotkeysWritten,
    1155                                            (id, generation))
    1156 
    1157     def _handleHotkeysWritten(self, success, xxx_todo_changeme7):
     1155                                           hotkeySet)
     1156
     1157    def _handleHotkeysWritten(self, success, hotkeySet):
    11581158        """Handle the result of the hotkeys having been written."""
    1159         (id, generation) = xxx_todo_changeme7
     1159        (id, generation) = hotkeySet
    11601160        with self._hotkeyLock:
    11611161            if success and id==self._hotkeySetID and \
     
    11661166                    self._handler.requestPeriodicRead(0.5, data,
    11671167                                                      self._handleHotkeys,
    1168                                                       (id, generation))
    1169 
    1170     def _handleHotkeys(self, data, xxx_todo_changeme8):
     1168                                                      hotkeySet)
     1169
     1170    def _handleHotkeys(self, data, hotkeySet):
    11711171        """Handle the hotkeys."""
    1172         (id, generation) = xxx_todo_changeme8
     1172        (id, generation) = hotkeySet
    11731173        with self._hotkeyLock:
    11741174            if id!=self._hotkeySetID or generation!=self._hotkeySetGeneration:
  • src/mlx/gui/flight.py

    r1003 r1004  
    51995199        pass
    52005200
    5201     def _formatTime(self, scheduledTime, realTimestamp, xxx_todo_changeme):
     5201    def _formatTime(self, scheduledTime, realTimestamp, warningError):
    52025202        """Format the departure or arrival time based on the given data as a
    52035203        markup for a label."""
    5204         (warning, error) = xxx_todo_changeme
     5204        (warning, error) = warningError
    52055205        realTime = time.gmtime(realTimestamp)
    52065206
  • src/mlx/util.py

    r929 r1004  
    4343#------------------------------------------------------------------------------
    4444
    45 def getCoordinateString(xxx_todo_changeme):
     45def getCoordinateString(coordinates):
    4646    """Get the string representation of the given coordinate pair."""
    47     (latitude, longitude) = xxx_todo_changeme
     47    (latitude, longitude) = coordinates
    4848    latitude_str = getLatitudeString(latitude)
    4949    longitude_str = getLongitudeString(longitude)
  • src/mlx/xplane.py

    r973 r1004  
    11431143            self._handler.disconnect()
    11441144
    1145     def _handleHotkeysRegistered(self, success, xxx_todo_changeme2):
     1145    def _handleHotkeysRegistered(self, success, hotkeySet):
    11461146        """Handle the result of the hotkeys having been written."""
    1147         (id, generation) = xxx_todo_changeme2
     1147        (id, generation) = hotkeySet
    11481148        with self._hotkeyLock:
    11491149            if success and id==self._hotkeySetID and \
     
    11521152                  self._handler.requestHotkeysState(0.5,
    11531153                                                    self._handleHotkeys,
    1154                                                     (id, generation))
    1155 
    1156     def _handleHotkeys(self, data, xxx_todo_changeme3):
     1154                                                    hotkeySet)
     1155
     1156    def _handleHotkeys(self, data, hotkeySet):
    11571157        """Handle the hotkeys."""
    1158         (id, generation) = xxx_todo_changeme3
     1158        (id, generation) = hotkeySet
    11591159        with self._hotkeyLock:
    11601160            if id!=self._hotkeySetID or generation!=self._hotkeySetGeneration:
     
    17531753    """Model handler for the FlyJSim Dash 8-Q400."""
    17541754    @staticmethod
    1755     def doesHandle(aircraft, xxx_todo_changeme):
     1755    def doesHandle(aircraft, data):
    17561756        """Determine if this model handler handles the aircraft with the given
    17571757        name."""
    1758         (tailnum, author, description, notes,
    1759                               icao, liveryPath) = xxx_todo_changeme
     1758        (tailnum, author, description, notes, icao, liveryPath) = data
    17601759        return aircraft.type==const.AIRCRAFT_DH8D and \
    17611760          description.find("Dash 8 Q400")!=-1 and \
     
    19151914    """Model for Felis' Tupolev Tu-154-M aircraft."""
    19161915    @staticmethod
    1917     def doesHandle(aircraft, xxx_todo_changeme1):
     1916    def doesHandle(aircraft, data):
    19181917        """Determine if this model handler handles the aircraft with the given
    19191918        name."""
    1920         (tailnum, author, description, notes,
    1921                               icao, liveryPath) = xxx_todo_changeme1
     1919        (tailnum, author, description, notes, icao, liveryPath) = data
    19221920        return aircraft.type==const.AIRCRAFT_T154 and \
    19231921          author.find("Felis")!=-1 and \
Note: See TracChangeset for help on using the changeset viewer.