mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Handle encoding errors (resolve #59)
This commit is contained in:
@@ -37,12 +37,16 @@ void init_ELF_DynamicEntryRpath_class(py::module& m) {
|
||||
py::class_<DynamicEntryRpath, DynamicEntry>(m, "DynamicEntryRpath")
|
||||
.def(py::init<const std::string &>())
|
||||
.def_property("name",
|
||||
static_cast<getter_t<const std::string&>>(&DynamicEntryRpath::name),
|
||||
[] (const DynamicEntryRpath& obj) {
|
||||
return safe_string_converter(obj.name());
|
||||
},
|
||||
static_cast<setter_t<const std::string&>>(&DynamicEntryRpath::name),
|
||||
"Return path value")
|
||||
|
||||
.def_property("rpath",
|
||||
static_cast<getter_t<const std::string&>>(&DynamicEntryRpath::rpath),
|
||||
[] (const DynamicEntryRpath& obj) {
|
||||
return safe_string_converter(obj.rpath());
|
||||
},
|
||||
static_cast<setter_t<const std::string&>>(&DynamicEntryRpath::rpath),
|
||||
"Return path value")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user