Fix Python version compatibility tests for vermin 0.10.0 (#14632)

This commit is contained in:
Adam J. Stewart 2020-01-27 00:31:13 -06:00 committed by Todd Gamblin
parent 0e86961b84
commit eb79c82cba
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
from spack.version import VersionList
if sys.version_info > (3, 1):
from html import escape
from html import escape # novm
else:
from cgi import escape

View File

@ -21,7 +21,7 @@
try:
# Python 2 had these in the HTMLParser package.
from HTMLParser import HTMLParser, HTMLParseError
from HTMLParser import HTMLParser, HTMLParseError # novm
except ImportError:
# In Python 3, things moved to html.parser
from html.parser import HTMLParser
@ -80,7 +80,7 @@ class NonDaemonPool(multiprocessing.pool.Pool):
Process = NonDaemonProcess
else:
class NonDaemonContext(type(multiprocessing.get_context())):
class NonDaemonContext(type(multiprocessing.get_context())): # novm
Process = NonDaemonProcess
class NonDaemonPool(multiprocessing.pool.Pool):
@ -128,7 +128,7 @@ def read_from_url(url, accept_content_type=None):
warn_no_ssl_cert_checking()
else:
# User wants SSL verification, and it *can* be provided.
context = ssl.create_default_context()
context = ssl.create_default_context() # novm
else:
# User has explicitly indicated that they do not want SSL
# verification.