diff options
| author | KyleMiles <krm504@nyu.edu> | 2019-05-31 14:17:00 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2019-05-31 14:17:28 -0400 |
| commit | 4452de9f22a8a9666f159a9fd5d66b67223ce2e5 (patch) | |
| tree | c436f2f475e1f580d5771900b4040e86c28a5457 /python/databuffer.py | |
| parent | f80491d350ea8c8c80373ea0c5e68358c2217d82 (diff) | |
Clean Up 2/3 int/long Compatibility
Diffstat (limited to 'python/databuffer.py')
| -rw-r--r-- | python/databuffer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/databuffer.py b/python/databuffer.py index 8644a75e..d41799e7 100644 --- a/python/databuffer.py +++ b/python/databuffer.py @@ -25,14 +25,14 @@ from binaryninja import _binaryninjacore as core # 2-3 compatibility from binaryninja import pyNativeStr -from binaryninja import long +import numbers class DataBuffer(object): def __init__(self, contents="", handle=None): if handle is not None: self.handle = core.handle_of_type(handle, core.BNDataBuffer) - elif isinstance(contents, int) or isinstance(contents, long): + elif isinstance(contents, int) or isinstance(contents, numbers.Integral): self.handle = core.BNCreateDataBuffer(None, contents) elif isinstance(contents, DataBuffer): self.handle = core.BNDuplicateDataBuffer(contents.handle) |
