Ignore:
Timestamp:
12/10/12 16:01:32 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Removed trailing whitespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r346 r348  
    2020class Flight(object):
    2121    """The object with the global flight state.
    22    
     22
    2323    It is also the hub for the other main objects participating in the handling of
    2424    the flight."""
     
    233233        """Handle a new state information."""
    234234        self._updateFlownDistance(currentState)
    235        
     235
    236236        self.endFuel = currentState.totalFuel
    237237        if self.startFuel is None:
    238238            self.startFuel = self.endFuel
    239        
     239
    240240        self._soundScheduler.schedule(currentState,
    241241                                      self._pilotHotkeyPressed)
     
    293293    def flareFinished(self, flareEnd, flareEndFS, tdRate):
    294294        """Called when the flare time has ended.
    295        
     295
    296296        Return a tuple of the following items:
    297297        - a boolean indicating if FS time is used
     
    329329    def speedToKnots(self, speed):
    330330        """Convert the given speed expressed in the flight's speed unit into
    331         knots."""       
     331        knots."""
    332332        return speed if self.speedInKnots else speed * const.KMPHTOKNOTS
    333333
     
    346346            if fuelStr: fuelStr += " - "
    347347            fuelStr += "%s=%.0f kg" % (const.fuelTank2logString(tank), amount)
    348            
     348
    349349        self.logger.message(aircraftState.timestamp, "Fuel: " + fuelStr)
    350350        self.logger.message(aircraftState.timestamp,
    351                             "Total fuel: %.0f kg" % (aircraftState.totalFuel,))                           
     351                            "Total fuel: %.0f kg" % (aircraftState.totalFuel,))
    352352
    353353    def cruiseLevelChanged(self):
     
    380380               self._previousLongitude is not None:
    381381                self.flownDistance += self._getDistance(currentState)
    382                
     382
    383383            self._lastDistanceTime = None
    384384
Note: See TracChangeset for help on using the changeset viewer.