BaseTools/Scripts: Porting PackageDocumentTools code to use Python3
Porting PackageDocumentTools code to support python2 and 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> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
@ -135,7 +135,7 @@ class parser_lst(object):
|
||||
tmp_dict[offset] = tmp_name
|
||||
pcdname_num = int(pcdname_num_re.findall(t_name)[0],10)
|
||||
uint = int(unit_num.findall(uint)[0],10)
|
||||
bit = uint / 8
|
||||
bit = uint // 8
|
||||
for i in range(1, pcdname_num):
|
||||
offset += bit
|
||||
tmp_name = pcdname2_re.findall(t_name)[0] + '[%s]' % i
|
||||
|
Reference in New Issue
Block a user