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>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user