From d4aed467dbd229f42e6da9e2e246dcc76d7a9486 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 10 Jun 2023 21:20:33 +0300 Subject: [PATCH] insndb/core: switch PCode to Tuple --- src/openpower/insndb/core.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index defe898a..4f421328 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -924,16 +924,8 @@ class Arguments(tuple): return super().__new__(cls, items) -class PCode: - def __init__(self, iterable): - self.__pcode = tuple(iterable) - return super().__init__() - - def __iter__(self): - yield from self.__pcode - - def __repr__(self): - return self.__pcode.__repr__() +class PCode(Tuple, datatype=str): + pass class MarkdownRecord(Dataclass): -- 2.30.2