From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: bob.c.feng@intel.com) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Wed, 18 Sep 2019 19:51:12 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 19:51:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,522,1559545200"; d="scan'208";a="186660360" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga008.fm.intel.com with ESMTP; 18 Sep 2019 19:51:12 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 19:51:12 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 19:51:12 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.32]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.146]) with mapi id 14.03.0439.000; Thu, 19 Sep 2019 10:51:08 +0800 From: "Bob Feng" To: "devel@edk2.groups.io" , "leif.lindholm@linaro.org" CC: "Gao, Liming" Subject: Re: [edk2-devel] [PATCH 8/9] BaseTools: correct line endings for ConvertFce Python script Thread-Topic: [edk2-devel] [PATCH 8/9] BaseTools: correct line endings for ConvertFce Python script Thread-Index: AQHVbnKNhPO+BYDhaUKWY3Gm62h7gacyTT/Q Date: Thu, 19 Sep 2019 02:51:08 +0000 Message-ID: <08650203BA1BD64D8AD9B6D5D74A85D161536FC5@SHSMSX104.ccr.corp.intel.com> References: <20190918224331.23269-1-leif.lindholm@linaro.org> <20190918224331.23269-9-leif.lindholm@linaro.org> In-Reply-To: <20190918224331.23269-9-leif.lindholm@linaro.org> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: bob.c.feng@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Leif= Lindholm Sent: Thursday, September 19, 2019 6:44 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming Subject: [edk2-devel] [PATCH 8/9] BaseTools: correct line endings for Conv= ertFce Python script Cc: Bob Feng Cc: Liming Gao Signed-off-by: Leif Lindholm --- BaseTools/Scripts/ConvertFceToStructurePcd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scr= ipts/ConvertFceToStructurePcd.py index 10f19dbe2f3c..89e6a727a201 100644 --- a/BaseTools/Scripts/ConvertFceToStructurePcd.py +++ b/BaseTools/Scripts/ConvertFceToStructurePcd.py @@ -506,8 +506,8 @@ class mainprocess(object): for i in range(len(info_list)-1,-1,-1): if len(info_list[i]) =3D=3D 0: info_list.remove(info_list[i]) - for i in (inf_list, title_all, header_list): - i.sort() + for i in (inf_list, title_all, header_list): + i.sort() return keys,title_all,info_list,header_list,inf_list =20 def remove_bracket(self,List): @@ -519,9 +519,9 @@ class mainprocess(object): List[List.index(i)][i.index(j)] =3D "|".join(tmp) else: List[List.index(i)][i.index(j)] =3D j - for i in List: - if type(i) =3D=3D type([0,0]): - i.sort() + for i in List: + if type(i) =3D=3D type([0,0]): + i.sort() return List =20 def write_all(self): --=20 2.20.1