Changeset 416:829e1d020dcc for src/mlx/checks.py
- Timestamp:
- 01/26/13 10:07:50 (11 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r415 r416 599 599 def _getMessage(self, flight, state, forced): 600 600 """Get the message from the given state.""" 601 return self._template % ("ON" if self._getValue(state) else "OFF") 601 value = self._getValue(state) 602 if value is None: 603 return None 604 else: 605 return self._template % ("ON" if value else "OFF") 602 606 603 607 #---------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.