From da1712e156fe8a1de56742ca1987f81d71205f56 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 16 Oct 2024 16:14:49 +0300 Subject: [PATCH] More coverage pragmas for Python 3.13 --- src/irclog2html/irclogsearch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irclog2html/irclogsearch.py b/src/irclog2html/irclogsearch.py index d648408..08d9f12 100644 --- a/src/irclog2html/irclogsearch.py +++ b/src/irclog2html/irclogsearch.py @@ -44,10 +44,11 @@ try: import cgi - import cgitb except ImportError: # Python 3.13 removed all CGI support cgi = None +else: # pragma: nocover + import cgitb DEFAULT_LOGFILE_PATH = os.path.dirname(__file__)