Move py3 sgmllib to an internal module - Scott Kitterman
This commit is contained in:
@@ -401,7 +401,10 @@ class _defang:
|
||||
# emulate old defang function
|
||||
defang = _defang()
|
||||
|
||||
from sgmllib import SGMLParser as HTMLParser
|
||||
if sys.version < '3.0.0':
|
||||
from sgmllib import SGMLParser as HTMLParser
|
||||
else:
|
||||
from Milter.sgmllib import SGMLParser as HTMLParser
|
||||
|
||||
import re
|
||||
declname = re.compile(r'[a-zA-Z][-_.a-zA-Z0-9]*\s*')
|
||||
|
||||
Reference in New Issue
Block a user