From 2c4383c82a2e7ff908c9d53567a68308bfd476ef Mon Sep 17 00:00:00 2001 From: Simon Branford Date: Tue, 31 Dec 2024 15:43:22 +0000 Subject: [PATCH] remove Python 2 fallback in `openssl_wrapper` --- easybuild/easyblocks/o/openssl_wrapper.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/easybuild/easyblocks/o/openssl_wrapper.py b/easybuild/easyblocks/o/openssl_wrapper.py index f4e7e6dbf7..a7bf49e701 100644 --- a/easybuild/easyblocks/o/openssl_wrapper.py +++ b/easybuild/easyblocks/o/openssl_wrapper.py @@ -29,12 +29,7 @@ """ import os import re - -try: - from urllib.parse import urlparse -except ImportError: - # fallback for Python 2.7, should be removed for EasyBuild >= 5.0 - from urlparse import urlparse +from urllib.parse import urlparse from easybuild.tools import LooseVersion