Skip to content

Commit

Permalink
Merge pull request easybuilders#3364 from branfosj/urlparse
Browse files Browse the repository at this point in the history
fix import of `parse` in `openssl_wrapper.py` for Python 2.7
  • Loading branch information
boegel authored Jun 18, 2024
2 parents 0a1a5ce + d19ca44 commit ad8dab3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion easybuild/easyblocks/o/openssl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
import os
import re

from urllib.parse import urlparse
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 easybuild.tools import LooseVersion

Expand Down

0 comments on commit ad8dab3

Please sign in to comment.