85a820031f
- Improve sedispatch performance Requires audit >= 3.0.1 - Improve Python 3.10 compatibility https://pagure.io/setroubleshoot/issue/58
35 lines
1006 B
Diff
35 lines
1006 B
Diff
From 4722407e107911d448b47a9beeb8240c4df833fa Mon Sep 17 00:00:00 2001
|
|
From: Adam Williamson <awilliam@redhat.com>
|
|
Date: Mon, 26 Jul 2021 13:16:27 -0700
|
|
Subject: [PATCH] html_util: drop various unnecessary imports
|
|
|
|
None of these actually seem to be used any more.
|
|
|
|
Signed-off-by: Adam Williamson <awilliam@redhat.com>
|
|
---
|
|
src/setroubleshoot/html_util.py | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/framework/src/setroubleshoot/html_util.py b/framework/src/setroubleshoot/html_util.py
|
|
index 095eaeb8c4d4..d24632b7e44c 100644
|
|
--- a/framework/src/setroubleshoot/html_util.py
|
|
+++ b/framework/src/setroubleshoot/html_util.py
|
|
@@ -30,14 +30,9 @@ import syslog
|
|
import sys
|
|
import textwrap
|
|
if sys.version_info > (3,):
|
|
- import html
|
|
- import html.entities
|
|
from html.parser import HTMLParser
|
|
else:
|
|
- import htmllib
|
|
from HTMLParser import HTMLParser
|
|
-import string
|
|
-from types import *
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
--
|
|
2.32.0
|
|
|