summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds/Region.py
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/GenFds/Region.py
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/GenFds/Region.py')
-rw-r--r--BaseTools/Source/Python/GenFds/Region.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/Region.py b/BaseTools/Source/Python/GenFds/Region.py
index 8ca61254b0..acc9dea413 100644
--- a/BaseTools/Source/Python/GenFds/Region.py
+++ b/BaseTools/Source/Python/GenFds/Region.py
@@ -62,7 +62,7 @@ class Region(object):
PadByte = pack('B', 0xFF)
else:
PadByte = pack('B', 0)
- PadData = ''.join(PadByte for i in xrange(0, Size))
+ PadData = ''.join(PadByte for i in range(0, Size))
Buffer.write(PadData)
## AddToBuffer()