<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@Microsoft YaHei";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Thanks, Bob!</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- Bret <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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">Feng, Bob C</a><br>
<b>Sent: </b>Tuesday, December 22, 2020 5:35 PM<br>
<b>To: </b><a href="mailto:hi@senzilla.io">D. Olsson</a>; <a href="mailto:devel@edk2.groups.io">
devel@edk2.groups.io</a>; <a href="mailto:Bret.Barkelew@microsoft.com">Bret Barkelew</a>;
<a href="mailto:gaoliming@byosoft.com.cn">gaoliming</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"><o:p> </o:p></p>
<p class="MsoNormal">Add a new BZ for recording the python3.9 related patches.<o:p></o:p></p>
<p class="MsoNormal"><a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.tianocore.org%2Fshow_bug.cgi%3Fid%3D3136&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C8a90baffee5548fa016608d8a6e318a7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637442841595129557%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=G37mPlomk6wDKGmmsUfjV%2BGNnFr%2FTXfg0XnrhORxf6I%3D&reserved=0">https://bugzilla.tianocore.org/show_bug.cgi?id=3136</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And I’ll update this patch <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fedk2.groups.io%2Fg%2Fdevel%2Fmessage%2F67511&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C8a90baffee5548fa016608d8a6e318a7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637442841595139510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TN1spRuLYK8gTZo%2Fml2co%2BZVpIxDtRiW78us2mff1q0%3D&reserved=0">
https://edk2.groups.io/g/devel/message/67511</a>  commit message to add this BZ when I push it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Bob<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> D. Olsson <hi@senzilla.io> <br>
<b>Sent:</b> Wednesday, December 23, 2020 6:32 AM<br>
<b>To:</b> devel@edk2.groups.io; bret.barkelew@microsoft.com; Feng, Bob C <bob.c.feng@intel.com>; gaoliming <gaoliming@byosoft.com.cn>; 'Yunhua Feng' <fengyunhua@byosoft.com.cn><br>
<b>Subject:</b> Re: [edk2-devel] [edk2/master PATCH 1/1] GenFds: Compatibility with Python 3.9<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div id="protonmail_signature_block">
<div>
<div>
<p class="MsoNormal">D. Olsson<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">PGP: 8204A8CD<o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">On Tue, Dec 22, 2020 at 22:59, Bret Barkelew via groups.io <<a href="mailto:bret.barkelew=microsoft.com@groups.io">bret.barkelew=microsoft.com@groups.io</a>> wrote:<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Do any of these reports have active Bugzilla or GitHub issues associated with them?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Trying to track patch completion in Mu, since we’ve already implemented the “frombytes” solution.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">- Bret
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;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&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C8a90baffee5548fa016608d8a6e318a7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637442841595139510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TN1spRuLYK8gTZo%2Fml2co%2BZVpIxDtRiW78us2mff1q0%3D&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 <<a href="mailto:gaoliming@byosoft.com.cn">gaoliming@byosoft.com.cn</a>>
<br>
Sent: Tuesday, December 22, 2020 8:47 AM<br>
To: <a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>; <a href="mailto:hi@senzilla.io">
hi@senzilla.io</a>; 'Yunhua Feng' <<a href="mailto:fengyunhua@byosoft.com.cn">fengyunhua@byosoft.com.cn</a>>; Feng, Bob C <<a href="mailto:bob.c.feng@intel.com">bob.c.feng@intel.com</a>><br>
Cc: 'Liming Gao' <<a href="mailto:gaoliming@byosoft.com.cn">gaoliming@byosoft.com.cn</a>><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>:
<a href="mailto:bounce+27952+69235+4905953+8761045@groups.io">bounce+27952+69235+4905953+8761045@groups.io</a><br>
> <<a href="mailto:bounce+27952+69235+4905953+8761045@groups.io">bounce+27952+69235+4905953+8761045@groups.io</a>>
<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>:
<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a><br>
> <span lang="ZH-CN" style="font-family:"Microsoft YaHei",sans-serif">抄送</span>: Dick Olsson <<a href="mailto:hi@senzilla.io">hi@senzilla.io</a>><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&data=04%7C01%7Cbret.barkelew%40microsoft.com%7C8a90baffee5548fa016608d8a6e318a7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637442841595149474%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DJrm5NYCLT6sFDikpdQXemdQ16cNNtO3Seyq1xVVKLE%3D&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 <<a href="mailto:hi@senzilla.io">hi@senzilla.io</a>><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>
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"></o:p></span></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>


 <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/69392">View/Reply Online (#69392)</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>