Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
928 stars 209 forks source link

DebugInfo.parsers API is broken #4652

Closed plafosse closed 1 year ago

plafosse commented 1 year ago

Version and Platform (required):

>>> bv.debug_info.parsers
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/peterlafosse/src/binaryninja/build_release_test_typelibupdate/out/binaryninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/debuginfo.py", line 303, in parsers
    result.append(parsers[i].encode("utf-8"))
                  ^^^^^^^^^^^^^^^^^
AttributeError: 'bytes' object has no attribute 'encode'
ElykDeer commented 1 year ago

https://github.com/Vector35/binaryninja-api/tree/test_fix_4652 / 82246f214ef4677b89beca168342a57c8a899fac would fix this, if adding that API is desired.

plafosse commented 1 year ago

Yes that would fix this please merge it.