diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2018-07-26 14:12:09 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-13 09:50:41 +0800 |
commit | 261eee25de664dcef2d99b6365b16c9bc444143f (patch) | |
tree | 209c06a120b7f773d742b180cf670bb4f5cd222e /BaseTools/Source/Python/Common | |
parent | 487062c048809420de1b008bc9d17815a8c4fbdb (diff) | |
download | edk2-261eee25de664dcef2d99b6365b16c9bc444143f.tar.gz edk2-261eee25de664dcef2d99b6365b16c9bc444143f.tar.bz2 edk2-261eee25de664dcef2d99b6365b16c9bc444143f.zip |
BaseTools: Rename xrange() to range()
Because the xrange() was not exist in Python3
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 5e7b163939..502f607f8d 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1634,7 +1634,7 @@ def SplitOption(OptionString): 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)
|