From b0e3bd2733ee100483b79eb09fd57534f8a80900 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Sat, 22 Dec 2018 18:35:24 -0500 Subject: Python2/3 support --- python/databuffer.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'python/databuffer.py') diff --git a/python/databuffer.py b/python/databuffer.py index 2fb5382d..eeee7ad1 100644 --- a/python/databuffer.py +++ b/python/databuffer.py @@ -25,17 +25,11 @@ from binaryninja import _binaryninjacore as core # 2-3 compatibility from binaryninja import pyNativeStr +from binaryninja import long class DataBuffer(object): def __init__(self, contents="", handle=None): - - # python3 no longer has longs - try: - long - except NameError: - long = int - if handle is not None: self.handle = core.handle_of_type(handle, core.BNDataBuffer) elif isinstance(contents, int) or isinstance(contents, long): -- cgit v1.3.1