Select Git revision
Forked from
Nettle / nettle
Source project has a limited visibility.
-
Niels Möller authored
Use new macro _NETTLE_ATTTRIBUTE_DEPRECATED.
Niels Möller authoredUse new macro _NETTLE_ATTTRIBUTE_DEPRECATED.
symbols.py 498 B
"""
Prettify symbols appearing in puppet code.
For example, replace bangs ('!') with negation signs ('¬').
"""
symbols: dict[str, str] = { # pragma: no cover
'=>': '⇒',
'!': '¬',
'!=': '≠',
'*': '×',
'>=': '≥',
'<=': '≤',
'~>': '⤳',
'->': '→',
'==': '≡',
'!~': '≁',
}
def prettify(symb: str) -> str: # pragma: no cover
"""Either turn the symbol into it's "pretty" variant, or return itself."""
return symbols.get(symb, symb)