From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 560C1D811A4 for ; Mon, 18 Mar 2024 09:08:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Q0rnCnYb11D+xDaomj6sUbx5W+K6mwrM5GgPt87K8nA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1710752935; v=1; b=1xD9NDDgB5aEJv7vEBTBUjEPaGeSEtXIL6KYAyWj6u6mIDE3on7vPvXA/+bnfqoFQ9V4duyp aPd3Y2eihXqNnQ3h602sSzocXFiZpLk2w45CT4BeUQt8RF8IytfyYCUdqxHLd51DLiNOW0BVT0z IXw2Ihn4UzXB9JoRLVBlXGSUR5u6i1yRBzuFdaqogDIdlQZSWOEZoudoex5q05/xUYQW/JYx/aF bUinOVBIfTA+xJfWQiXlMlhcMyrgdz4LaA1YcK9c5eYN8ymqRp6lywf9hrH/4K3RO0OLESsvKF3 9HPqdMVYrU826Qg6OrL9iv/rEl6ngsSrwQ+caDQDEGTXA== X-Received: by 127.0.0.2 with SMTP id 7oUXYY7687511xp57dwZUsn7; Mon, 18 Mar 2024 02:08:55 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mx.groups.io with SMTP id smtpd.web10.38813.1710752932031965890 for ; Mon, 18 Mar 2024 02:08:54 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,11016"; a="5679396" X-IronPort-AV: E=Sophos;i="6.07,134,1708416000"; d="scan'208";a="5679396" X-Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 02:08:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,134,1708416000"; d="scan'208";a="36536005" X-Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.151]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 02:08:51 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu , Chasel Chiu , Nate DeSimone , Duggapu Chinni B , Star Zeng , Ted Kuo , Ashraf Ali S , Susovan Mohapatra Subject: [edk2-devel] [PATCH] IntelFsp2Pkg/Tools: Updated iterator usage for Python 3 compatibility Date: Mon, 18 Mar 2024 17:08:36 +0800 Message-Id: <20240318090836.361-2-zhiguang.liu@intel.com> In-Reply-To: <20240318090836.361-1-zhiguang.liu@intel.com> References: <20240318090836.361-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 18 Mar 2024 02:08:54 -0700 Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: II4uuwNpjo7E9V2Q2YkmaElWx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=1xD9NDDg; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) Updated iterator usage for Python 3 compatibility Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Star Zeng Cc: Ted Kuo Cc: Ashraf Ali S Cc: Susovan Mohapatra Signed-off-by: Zhiguang Liu --- IntelFsp2Pkg/Tools/PatchFv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntelFsp2Pkg/Tools/PatchFv.py b/IntelFsp2Pkg/Tools/PatchFv.py index 0cab73255d..fd7476d576 100644 --- a/IntelFsp2Pkg/Tools/PatchFv.py +++ b/IntelFsp2Pkg/Tools/PatchFv.py @@ -720,7 +720,7 @@ class Symbols: def getModGuid(self, var): guid = (guid for guid,name in self.dictGuidNameXref.items() if name==var) try: - value = guid.next() + value = next(guid) except Exception: raise Exception("Unknown module name %s !" % var) return value -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116836): https://edk2.groups.io/g/devel/message/116836 Mute This Topic: https://groups.io/mt/104999189/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-