From 33e06636997ec10c6a393a9668264473cc94af83 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 7 Sep 2025 20:11:45 -0400 Subject: fix type error in pygmentize --- pypaste/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pypaste/__main__.py b/pypaste/__main__.py index d002b5b..727087b 100644 --- a/pypaste/__main__.py +++ b/pypaste/__main__.py @@ -68,12 +68,12 @@ def pygmentize( lexer = guess_lexer(content) try: - style = get_style_by_name(style) + s = get_style_by_name(style) except Exception as e: print(e, file=sys.stderr) - style = "default" + s = get_style_by_name("default") - formatter = HtmlFormatter(full=True, style=style, linenos="table") + formatter = HtmlFormatter(full=True, style=s, linenos="table") return highlight(content, lexer, formatter) -- cgit v1.2.3