summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-07 20:11:45 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-07 20:11:45 -0400
commit33e06636997ec10c6a393a9668264473cc94af83 (patch)
tree7f090876bd118b25d4b7060ebec6f119bbcb4da9
parentf05229c7b90ff11ce551c89bc37c9e139cecede8 (diff)
downloadpypaste-33e06636997ec10c6a393a9668264473cc94af83.tar.gz
fix type error in pygmentize
-rw-r--r--pypaste/__main__.py6
1 files 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)