From 686c605e62a951302088efc977c58d40bd16f25b Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 23 Feb 2015 17:58:15 +0100 Subject: JitCore: Jitcore is an abstract class --- miasm2/jitter/jitcore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miasm2/jitter/jitcore.py') diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py index b5a6264a..e6f4ab02 100644 --- a/miasm2/jitter/jitcore.py +++ b/miasm2/jitter/jitcore.py @@ -71,7 +71,7 @@ class JitCore(object): def load(self, arch, attrib): "Initialise the Jitter according to arch and attrib" - raise Exception("DO NOT instanciate JitCore") + raise NotImplementedError("Abstract class") def get_bloc_min_max(self, cur_bloc): "Update cur_bloc to set min/max address" @@ -95,7 +95,7 @@ class JitCore(object): @irblocs: a gorup of irblocs """ - raise Exception("DO NOT instanciate JitCore") + raise NotImplementedError("Abstract class") def add_bloc(self, b): """Add a bloc to JiT and JiT it. -- cgit 1.4.1