aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 1b71295..75c179b 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -380,7 +380,7 @@ class Markdown:
# Don't close here. User may want to write more.
else:
# Encode manually and write bytes to stdout.
- html = html.encode(encoding, errors="xmlcharrefreplace")
+ html = html.encode(encoding, "xmlcharrefreplace")
try:
# Write bytes directly to buffer (Python 3).
sys.stdout.buffer.write(html)