From 2732a1a2182b371d8c29ed18db5db87763565518 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 11 Jun 2021 14:03:33 +0200 Subject: Revert "Allow calling CI's build scripts with python2" Python 2 is obsolete. This reverts commit 6635c196f3813f722c3498ecd98a4fbf4bf14741. Pick-to: 6.1 Fixes: PYSIDE-1437 Change-Id: I2eae44459efd6b4b9a6473563c4b5864ad932bd5 Reviewed-by: Christian Tismer --- build_scripts/utils.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'build_scripts/utils.py') diff --git a/build_scripts/utils.py b/build_scripts/utils.py index abe0b2c05..614fe336a 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -49,13 +49,7 @@ import fnmatch import itertools import glob -# There is no urllib.request in Python2 -# even if Qt for Python doesn't support python2, we need the support for calling the -# build scipts with python2. -try: - import urllib.request as urllib -except ImportError: - import urllib +import urllib.request as urllib import distutils.log as log from distutils.errors import DistutilsSetupError -- cgit v1.2.3