From c23bc7b85c9dfa8b8263880dae300a6fc77286ee Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 16 May 2019 08:06:33 -0700 Subject: fix databuffer --- python/databuffer.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'python') diff --git a/python/databuffer.py b/python/databuffer.py index 3d754090..8644a75e 100644 --- a/python/databuffer.py +++ b/python/databuffer.py @@ -34,8 +34,6 @@ class DataBuffer(object): self.handle = core.handle_of_type(handle, core.BNDataBuffer) elif isinstance(contents, int) or isinstance(contents, long): self.handle = core.BNCreateDataBuffer(None, contents) - elif isinstance(contents, str): - self.handle = core.BNCreateDataBuffer(contents.encode(), len(contents.encode())) elif isinstance(contents, DataBuffer): self.handle = core.BNDuplicateDataBuffer(contents.handle) else: -- cgit v1.3.1