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/GenFds | |
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/GenFds')
-rw-r--r-- | BaseTools/Source/Python/GenFds/Region.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/Region.py b/BaseTools/Source/Python/GenFds/Region.py index 457861fa57..61c9e182a8 100644 --- a/BaseTools/Source/Python/GenFds/Region.py +++ b/BaseTools/Source/Python/GenFds/Region.py @@ -57,7 +57,7 @@ class Region(RegionClassObject): 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()
|