diff options
author | Zhijux Fan <zhijux.fan@intel.com> | 2018-12-17 00:04:04 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-01 11:09:19 +0800 |
commit | 7cc7e054f8496c4732765ca353e0ad7c3bb5d2cf (patch) | |
tree | ac3f1a1f5f2ff133035d37ff209892945879af10 /BaseTools/Scripts/ConvertFceToStructurePcd.py | |
parent | fe906312983fce0074d534c03844c035c086d57d (diff) | |
download | edk2-7cc7e054f8496c4732765ca353e0ad7c3bb5d2cf.tar.gz edk2-7cc7e054f8496c4732765ca353e0ad7c3bb5d2cf.tar.bz2 edk2-7cc7e054f8496c4732765ca353e0ad7c3bb5d2cf.zip |
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>
Diffstat (limited to 'BaseTools/Scripts/ConvertFceToStructurePcd.py')
-rw-r--r-- | BaseTools/Scripts/ConvertFceToStructurePcd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scripts/ConvertFceToStructurePcd.py index 59eec28d5e..1495ac34d6 100644 --- a/BaseTools/Scripts/ConvertFceToStructurePcd.py +++ b/BaseTools/Scripts/ConvertFceToStructurePcd.py @@ -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
|