diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-05-16 08:06:33 -0700 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-05-16 08:06:33 -0700 |
| commit | c23bc7b85c9dfa8b8263880dae300a6fc77286ee (patch) | |
| tree | b6f11c6ab2514ca849901362e335f95ae36ae9a3 /python/databuffer.py | |
| parent | a36bf87e109485f9e056d2cd4e8f54ab320140dd (diff) | |
fix databuffer
Diffstat (limited to 'python/databuffer.py')
| -rw-r--r-- | python/databuffer.py | 2 |
1 files changed, 0 insertions, 2 deletions
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: |
