it looks like a old POC of the concepts then used to make the classes in the file.
Cc: Liming Gao <liming....@intel.com> Cc: Yonghong Zhu <yonghong....@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.car...@intel.com> --- BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py index 1328dddf1a10..dd78dc520075 100644 --- a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py +++ b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py @@ -324,20 +324,3 @@ class VAR_VALID_OBJECT_FACTORY(object): return VAR_CHECK_PCD_VALID_LIST(VarOffset, PcdClass.validlists, PcdClass.DatumType) else: return None - -if __name__ == "__main__": - class TestObj(object): - def __init__(self, number1): - self.number_1 = number1 - def __eq__(self, testobj): - if self.number_1 == testobj.number_1: - return True - else: - return False - test1 = TestObj(1) - test2 = TestObj(2) - - testarr = [test1, test2] - print TestObj(2) in testarr - print TestObj(2) == test2 - -- 2.16.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel