summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common
diff options
context:
space:
mode:
authorZhijux Fan <zhijux.fan@intel.com>2018-11-28 09:26:06 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-01 11:09:16 +0800
commite77e59c9bdb929c4d6e896d181ad2752fac7b538 (patch)
treeef3d8a01c2c97f58e29bca2d684d3689894a9a8b /BaseTools/Source/Python/Common
parentcc01b26e053c7ae1e33889c8bc42beaa1d7799ac (diff)
downloadedk2-e77e59c9bdb929c4d6e896d181ad2752fac7b538.tar.gz
edk2-e77e59c9bdb929c4d6e896d181ad2752fac7b538.tar.bz2
edk2-e77e59c9bdb929c4d6e896d181ad2752fac7b538.zip
BaseTool:Rename xrange() to range()
Because the xrange() was not exist in Python3 Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r--BaseTools/Source/Python/Common/Misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py
index 0b4dd7a7c1..01bd62a9e2 100644
--- a/BaseTools/Source/Python/Common/Misc.py
+++ b/BaseTools/Source/Python/Common/Misc.py
@@ -1448,7 +1448,7 @@ def CheckPcdDatum(Type, Value):
def CommonPath(PathList):
P1 = min(PathList).split(os.path.sep)
P2 = max(PathList).split(os.path.sep)
- for Index in xrange(min(len(P1), len(P2))):
+ for Index in range(min(len(P1), len(P2))):
if P1[Index] != P2[Index]:
return os.path.sep.join(P1[:Index])
return os.path.sep.join(P1)