Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

blowfish.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    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)