<div>I have not created any additional entries on Bugzilla or GitHub for this specific patch. But I have seen plenty of related patches in the mailing list.<caret></caret></div><div><br></div><div id="protonmail_signature_block" class="protonmail_signature_block"><div><div>D. Olsson<br></div><div>PGP: 8204A8CD<br></div></div></div>  <div><br></div><div><br></div>On Tue, Dec 22, 2020 at 22:59, Bret Barkelew via groups.io <<a href="mailto:bret.barkelew=microsoft.com@groups.io" class="">bret.barkelew=microsoft.com@groups.io</a>> wrote:<blockquote class="protonmail_quote" type="cite">  






<div class="WordSection1">
<p class="MsoNormal">Do any of these reports have active Bugzilla or GitHub issues associated with them?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Trying to track patch completion in Mu, since we’ve already implemented the “frombytes” solution.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">- Bret </p>
<p class="MsoNormal"> </p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:bob.c.feng=intel.com@groups.io">Bob Feng via groups.io</a><br>
<b>Sent: </b>Monday, December 21, 2020 5:58 PM<br>
<b>To: </b><a href="mailto:gaoliming@byosoft.com.cn">gaoliming</a>; <a href="mailto:devel@edk2.groups.io">
devel@edk2.groups.io</a>; <a href="mailto:hi@senzilla.io">hi@senzilla.io</a>; <a href="mailto:fengyunhua@byosoft.com.cn">
'Yunhua Feng'</a><br>
<b>Subject: </b>[EXTERNAL] Re: [edk2-devel] [edk2/master PATCH 1/1] GenFds: Compatibility with Python 3.9</p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12.0pt">This patch won't work for python2<br>
<br>
Let's review this patch.<br>
<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fedk2.groups.io%2Fg%2Fdevel%2Fmessage%2F67511&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7C6fa4f0d34ca34df5a21a08d8a61d1c0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637441991250372790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=q0kpLCthainyd0V8u%2FgJoCkx1SD4N0SLITWXBqAmLAk%3D&amp;reserved=0">https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fedk2.groups.io%2Fg%2Fdevel%2Fmessage%2F67511&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7C6fa4f0d34ca34df5a21a08d8a61d1c0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637441991250372790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=q0kpLCthainyd0V8u%2FgJoCkx1SD4N0SLITWXBqAmLAk%3D&amp;reserved=0</a><br>
<br>
Thanks,<br>
Bob<br>
<br>
-----Original Message-----<br>
From: gaoliming <gaoliming@byosoft.com.cn> <br>
Sent: Tuesday, December 22, 2020 8:47 AM<br>
To: devel@edk2.groups.io; hi@senzilla.io; 'Yunhua Feng' <fengyunhua@byosoft.com.cn>; Feng, Bob C <bob.c.feng@intel.com><br>
Cc: 'Liming Gao' <gaoliming@byosoft.com.cn><br>
Subject: <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">回复</span>: [edk2-devel] [edk2/master PATCH 1/1] GenFds: Compatibility with Python 3.9<br>
<br>
Yunhua and Bob:<br>
  Can you review this patch this week? More and more people reports Python39 fail in BaseTools.<br>
<br>
Thanks<br>
Liming<br>
> -----<span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">邮件原件</span>-----<br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">发件人</span>: bounce+27952+69235+4905953+8761045@groups.io<br>
> <bounce+27952+69235+4905953+8761045@groups.io> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">
代表</span> D. Olsson via <br>
> groups.io<br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">发送时间</span>: 2020<span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">年</span>12<span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">月</span>19<span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">日</span>
 4:15<br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">收件人</span>: devel@edk2.groups.io<br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">抄送</span>: Dick Olsson <hi@senzilla.io><br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">主题</span>: [edk2-devel] [edk2/master PATCH 1/1] GenFds: Compatibility with
<br>
> Python 3.9<br>
> <br>
> Python 3.9 removed the tostring() and fromstring() methods:<br>
> <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python.org%2F3%2Fwhatsnew%2F3.9.html%23removed&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7C6fa4f0d34ca34df5a21a08d8a61d1c0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637441991250372790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Zjbwllc0trGUL%2FSgSnB4Ivmkzu2B1l5AEgbWKf4L77g%3D&amp;reserved=0">
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python.org%2F3%2Fwhatsnew%2F3.9.html%23removed&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7C6fa4f0d34ca34df5a21a08d8a61d1c0f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637441991250372790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Zjbwllc0trGUL%2FSgSnB4Ivmkzu2B1l5AEgbWKf4L77g%3D&amp;reserved=0</a><br>
> <br>
> Signed-off-by: Dick Olsson <hi@senzilla.io><br>
> ---<br>
>  BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | 4 ++--<br>
>  1 file changed, 2 insertions(+), 2 deletions(-)<br>
> <br>
> diff --git a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py<br>
> b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py<br>
> index dc1727c466..124dc43199 100644<br>
> --- a/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py<br>
> +++ b/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py<br>
> @@ -463,12 +463,12 @@ class GenFdsGlobalVariable:<br>
>                      GenFdsGlobalVariable.SecCmdList.append('<br>
> '.join(Cmd).strip())<br>
>              else:<br>
>                  SectionData = array('B', [0, 0, 0, 0])<br>
> -                SectionData.fromstring(Ui.encode("utf_16_le"))<br>
> +                SectionData.frombytes(Ui.encode("utf_16_le"))<br>
>                  SectionData.append(0)<br>
>                  SectionData.append(0)<br>
>                  Len = len(SectionData)<br>
> <br>
> GenFdsGlobalVariable.SectionHeader.pack_into(SectionData, 0, Len & <br>
> 0xff, (Len >> 8) & 0xff, (Len >> 16) & 0xff, 0x15)<br>
> -                SaveFileOnChange(Output, SectionData.tostring())<br>
> +                SaveFileOnChange(Output, SectionData.tobytes())<br>
> <br>
>          elif Ver:<br>
>              Cmd += ("-n", Ver)<br>
> --<br>
> 2.25.1<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
<p class="MsoNormal"> </p>
</div>




 

</blockquote><div><br></div><div><br></div>

 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/69389">View/Reply Online (#69389)</a> |    |  <a target="_blank" href="https://groups.io/mt/79140937/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>