diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /ipc/ipdl/ipdl/ast.py | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/ipdl/ast.py')
-rw-r--r-- | ipc/ipdl/ipdl/ast.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/ipc/ipdl/ipdl/ast.py b/ipc/ipdl/ipdl/ast.py index ff083cf628..9329bd3d23 100644 --- a/ipc/ipdl/ipdl/ast.py +++ b/ipc/ipdl/ipdl/ast.py @@ -254,37 +254,35 @@ class UsingStmt(Node): # "singletons" -class PrettyPrinted: - @classmethod +class PrettyPrinted(type): def __hash__(cls): return hash_str(cls.pretty) - @classmethod def __str__(cls): return cls.pretty -class ASYNC(PrettyPrinted): +class ASYNC(metaclass=PrettyPrinted): pretty = "async" -class INTR(PrettyPrinted): +class INTR(metaclass=PrettyPrinted): pretty = "intr" -class SYNC(PrettyPrinted): +class SYNC(metaclass=PrettyPrinted): pretty = "sync" -class INOUT(PrettyPrinted): +class INOUT(metaclass=PrettyPrinted): pretty = "inout" -class IN(PrettyPrinted): +class IN(metaclass=PrettyPrinted): pretty = "in" -class OUT(PrettyPrinted): +class OUT(metaclass=PrettyPrinted): pretty = "out" |