diff --git a/xml2rfc/writers/legacy_html.py b/xml2rfc/writers/legacy_html.py
index 609e7209..5a0d7ee8 100644
--- a/xml2rfc/writers/legacy_html.py
+++ b/xml2rfc/writers/legacy_html.py
@@ -11,10 +11,7 @@
import datetime
import calendar
-try:
- from html import escape
-except ImportError:
- from cgi import escape
+from html import escape
try:
from xml2rfc import debug