From df47e2395f48cd2fadf089a24c0ea05d1a5cf635 Mon Sep 17 00:00:00 2001 From: elicn Date: Wed, 8 Jun 2022 16:58:19 +0300 Subject: [PATCH] Eliminate UcGeneric --- bindings/python/unicorn/unicorn.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bindings/python/unicorn/unicorn.py b/bindings/python/unicorn/unicorn.py index 1e796beb..a48f6847 100644 --- a/bindings/python/unicorn/unicorn.py +++ b/bindings/python/unicorn/unicorn.py @@ -383,9 +383,9 @@ class Uc: return __wrapped def __uc_generic(): - return UcGeneric + return Uc - wrapped = { + wrapped: Callable[[], Type[Uc]] = { uc.UC_ARCH_ARM : __uc_subclass('arm', 'UcAArch32'), uc.UC_ARCH_ARM64 : __uc_subclass('arm64', 'UcAArch64'), uc.UC_ARCH_MIPS : __uc_generic, @@ -1049,13 +1049,6 @@ class Uc: self.__ctl_w(uc.UC_CTL_TB_FLUSH) -class UcGeneric(Uc): - """Unicorn generic architecture subclass. - """ - - pass - - class UcContext: def __init__(self, h, arch: int, mode: int): self._context = uc_context()