From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 795DE22742AA1 for ; Wed, 11 Apr 2018 16:08:11 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2018 16:08:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,438,1517904000"; d="scan'208";a="42639623" Received: from jcarsey-desk1.amr.corp.intel.com ([10.7.159.144]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2018 16:08:10 -0700 From: Jaben To: edk2-devel@lists.01.org Date: Wed, 11 Apr 2018 16:08:04 -0700 Message-Id: X-Mailer: git-send-email 2.16.2.windows.1 Subject: [PATCH v1 0/4] BaseTools: refactoring (and one bug fix) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 23:08:11 -0000 refactor to reduce duplication remove a duplicate function name (I presume this branch never executes as it would have had exception) Jaben (4): BaseTools: remove duplicate function name BaseTools: replace 'UINT8','UINT16','UINT32','UINT64','VOID*' with shared constants. BaseTools: Remove un-needed list comprehension BaseTools: merge towards minimum PCD MAX methods BaseTools/Source/Python/AutoGen/AutoGen.py | 26 +++--- BaseTools/Source/Python/AutoGen/GenC.py | 94 ++++++++++---------- BaseTools/Source/Python/AutoGen/GenPcdDb.py | 23 ++--- BaseTools/Source/Python/AutoGen/GenVar.py | 29 +++--- BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py | 9 +- BaseTools/Source/Python/Common/DataType.py | 16 ++-- BaseTools/Source/Python/Common/Expression.py | 61 ++++++------- BaseTools/Source/Python/Common/Misc.py | 12 +-- BaseTools/Source/Python/Common/RangeExpression.py | 25 ++---- BaseTools/Source/Python/Common/VpdInfoFile.py | 9 +- BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py | 2 +- BaseTools/Source/Python/Eot/FvImage.py | 4 +- BaseTools/Source/Python/GenFds/FdfParser.py | 15 ++-- BaseTools/Source/Python/GenFds/FfsInfStatement.py | 11 ++- BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py | 4 +- BaseTools/Source/Python/PatchPcdValue/PatchPcdValue.py | 21 ++--- BaseTools/Source/Python/Workspace/DscBuildData.py | 69 ++++++-------- BaseTools/Source/Python/build/BuildReport.py | 4 +- 18 files changed, 211 insertions(+), 223 deletions(-) -- 2.16.2.windows.1