From 7b3ef423c1d267cb069bf746aaa2b196bb67aa2b Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Tue, 9 Apr 2019 16:12:25 -0400 Subject: [PATCH] Use html.escape instead of cgi.escape cgi.escape is gone as of Python 3.8. --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d537b60..682dbcf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,7 @@ # # This file is execfile()d with the current directory set to its containing dir. -import re, os, sys, time, cgi +import re, os, sys, time, html sys.path.append(os.path.abspath("..")) extensions = ['sphinx.ext.intersphinx'] @@ -28,7 +28,7 @@ copyright = u'%s the authors' % time.strftime('%Y') version = ".".join(hy_version.split(".")[:-1]) # The full version, including alpha/beta/rc tags. release = hy_version -hy_descriptive_version = cgi.escape(hy_version) +hy_descriptive_version = html.escape(hy_version) if "+" in hy_version: hy_descriptive_version += " (unstable)"