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>
This commit is contained in:
committed by
Yonghong Zhu
parent
487062c048
commit
261eee25de
@ -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()
|
||||
|
Reference in New Issue
Block a user