summaryrefslogtreecommitdiff
path: root/pygments/lexers/_postgres_builtins.py
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2021-02-14 00:01:47 -0800
committerGitHub <noreply@github.com>2021-02-14 09:01:47 +0100
commitc2cf688397b0b2adb649e51946c00714b74d2d9e (patch)
tree47c1089971a6d32cb130ed7f06cba58e6fbe10fe /pygments/lexers/_postgres_builtins.py
parente59ec24561357c9d5efa4cfcda0401e0a79df91d (diff)
downloadpygments-git-c2cf688397b0b2adb649e51946c00714b74d2d9e.tar.gz
RawToken{Formatter,Lexer}: support Python 3 and handle exceptions (#1602)
In Python 3, RawTokenFormatter would output non-ASCII for non-ASCII input, and RawTokenLexer would throw Unicode-related exceptions for ASCII or non-ASCII input; fix them. Also, handle all exceptions, so that callers who find RawTokenLexer via get_lexer_by_name on user input don’t unexpectedly get a lexer that throws exceptions. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pygments/lexers/_postgres_builtins.py')
0 files changed, 0 insertions, 0 deletions