From 6f3c0f396e2965cbaee44a95a848cddff203cbc9 Mon Sep 17 00:00:00 2001 From: changxuqing Date: Thu, 13 Jul 2023 18:47:41 +0800 Subject: [PATCH] In the above code, we use the super() function to call the __init__ method of the parent class, which ensures the consistency of the code when inheriting Signed-off-by: changxuqing --- avocado/utils/pmem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/avocado/utils/pmem.py b/avocado/utils/pmem.py index b49d457ce8..100a3a98e8 100644 --- a/avocado/utils/pmem.py +++ b/avocado/utils/pmem.py @@ -28,6 +28,7 @@ class PMemException(Exception): """ def __init__(self, additional_text=None): # pylint: disable=W0231 + super().__init__() self.additional_text = additional_text def __str__(self):