.. _consider-using-ternary: consider-using-ternary / R1706 ============================== **Message emitted:** ``Consider using ternary (%s)`` **Description:** *Used when one of known pre-python 2.5 ternary syntax is used.* **Problematic code:** .. literalinclude:: /data/messages/c/consider-using-ternary/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/c/consider-using-ternary/good.py :language: python Created by the `refactoring `__ checker.