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/checks.py

    r912 r919  
    11
    2 import fs
    3 import const
    4 import util
    5 from acars import ACARS
    6 from sound import startSound
     2from . import fs
     3from . import const
     4from . import util
     5from .acars import ACARS
     6from .sound import startSound
    77
    88import time
     
    129129        """Callback for ACARS sending."""
    130130        if returned:
    131             print "Sent online ACARS"
     131            print("Sent online ACARS")
    132132            self._lastSent = time.time() if self._lastSent is None \
    133133                             else self._lastSent + ACARSSender.INTERVAL
    134134        else:
    135             print "Failed to send the ACARS"
     135            print("Failed to send the ACARS")
    136136        self._sending = False
    137137
     
    517517    def getMessage(logName, frequency, obs):
    518518        """Get the message for the given NAV radio setting."""
    519         message = u"%-5s %s" % (logName + ":", frequency)
    520         if obs is not None: message += u" (%03d\u00b0)" % (obs,)
     519        message = "%-5s %s" % (logName + ":", frequency)
     520        if obs is not None: message += " (%03d\u00b0)" % (obs,)
    521521        return message
    522522
     
    747747        message = what
    748748        if value is None:
    749             message += u" cannot be detected, will not log"
     749            message += " cannot be detected, will not log"
    750750        else:
    751             message += u": " + format % (value,)
     751            message += ": " + format % (value,)
    752752        logger.message(timestamp, message)
    753753
     
    767767    def _logAPHeading(logger, timestamp, state):
    768768        """Log the AP heading."""
    769         APLogger._logNumeric(logger, timestamp, u"AP heading",
    770                              u"%03.0f\u00b0", state.apHeading)
     769        APLogger._logNumeric(logger, timestamp, "AP heading",
     770                             "%03.0f\u00b0", state.apHeading)
    771771
    772772    @staticmethod
     
    779779    def _logAPAltitude(logger, timestamp, state):
    780780        """Log the AP heading."""
    781         APLogger._logNumeric(logger, timestamp, u"AP altitude",
    782                              u"%.0f ft", state.apAltitude)
     781        APLogger._logNumeric(logger, timestamp, "AP altitude",
     782                             "%.0f ft", state.apAltitude)
    783783
    784784    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.