From b7c5486f26386c7c165b9b05cc2d6800db082b6f Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 17 Jul 2017 14:01:48 -0400 Subject: Fix referenced to old calling convention api, Fixes #739 --- python/callingconvention.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/callingconvention.py') diff --git a/python/callingconvention.py b/python/callingconvention.py index e029a6aa..e9825642 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -40,8 +40,10 @@ class CallingConvention(object): _registered_calling_conventions = [] - def __init__(self, arch, name, handle = None): + def __init__(self, arch=None, name=None, handle=None): if handle is None: + if arch is None or name is None: + raise ValueError("Must specify either handle or architecture and name") self.arch = arch self._pending_reg_lists = {} self._cb = core.BNCustomCallingConvention() -- cgit v1.3.1