Changeset 335:db900a4a0930 for src/mlx/const.py
- Timestamp:
- 11/13/12 18:17:23 (11 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/const.py
r329 r335 187 187 """Convert the given stage to a lower-case string.""" 188 188 return _stageStrings[stage] if stage in _stageStrings else None 189 189 190 190 #------------------------------------------------------------------------------- 191 191 … … 233 233 """Get the string equivalent of the given flight type.""" 234 234 return _flightTypeStrings[flightType] \ 235 if flightType in _flightTypeStrings else None 235 if flightType in _flightTypeStrings else None 236 236 237 237 #------------------------------------------------------------------------------- … … 325 325 """Get the string equivalent of the given message type.""" 326 326 return _messageTypeStrings[messageType] \ 327 if messageType in _messageTypeStrings else None 327 if messageType in _messageTypeStrings else None 328 328 329 329 #------------------------------------------------------------------------------- … … 358 358 """Get the string equivalent of the given message level.""" 359 359 return _messageLevelStrings[messageLevel] \ 360 if messageLevel in _messageLevelStrings else None 360 if messageLevel in _messageLevelStrings else None 361 361 362 362 def string2messageLevel(str): … … 476 476 """Get the string equivalent of the given fuelTank.""" 477 477 return _fuelTankStrings[fuelTank] \ 478 if fuelTank in _fuelTankStrings else None 478 if fuelTank in _fuelTankStrings else None 479 479 480 480 #------------------------------------------------------------------------------- … … 525 525 526 526 #------------------------------------------------------------------------------- 527
Note:
See TracChangeset
for help on using the changeset viewer.