diff --git a/scripts/release-yaml-file-prep.py b/scripts/release-yaml-file-prep.py index efb054e876..1eaffd6be6 100755 --- a/scripts/release-yaml-file-prep.py +++ b/scripts/release-yaml-file-prep.py @@ -24,7 +24,12 @@ from __future__ import print_function from cStringIO import StringIO -from urlparse import urlparse + +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse + import argparse import re