From e6ca241ee3ef105a8e8ae96928949499bb396c5b Mon Sep 17 00:00:00 2001 From: Simon Branford <4967+branfosj@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:36:00 +0100 Subject: [PATCH] support Python 2 in `openssl_wrapper.py` At least for a short time --- easybuild/easyblocks/o/openssl_wrapper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/easybuild/easyblocks/o/openssl_wrapper.py b/easybuild/easyblocks/o/openssl_wrapper.py index d776c43a02..de7f4314eb 100644 --- a/easybuild/easyblocks/o/openssl_wrapper.py +++ b/easybuild/easyblocks/o/openssl_wrapper.py @@ -30,7 +30,11 @@ import os import re -from urllib.parse import urlparse +# support python2 +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse from easybuild.tools import LooseVersion