diff options
| author | KyleMiles <krm504@nyu.edu> | 2018-12-22 18:35:24 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2018-12-22 18:35:24 -0500 |
| commit | b0e3bd2733ee100483b79eb09fd57534f8a80900 (patch) | |
| tree | 12c63bcc59d9c5f974c34d7d8e45e9156d9a1ceb /python/databuffer.py | |
| parent | 50f496a87861d5d5688bb9aeecb0b4ab5653dc01 (diff) | |
Python2/3 support
Diffstat (limited to 'python/databuffer.py')
| -rw-r--r-- | python/databuffer.py | 8 |
1 files changed, 1 insertions, 7 deletions
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): |
