diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-07-14 14:14:29 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-07-15 14:17:17 -0400 |
| commit | 6110eaaafe12cac0339cb0bdcc135e1b3f2c2220 (patch) | |
| tree | 88362aec16bf8755fe2baf81e4373a01a7131471 /python/function.py | |
| parent | ef0604078bccf7f6896db1d11137cfabb7d7fb4e (diff) | |
adding set_comment_at deprecating set_comment for consistency
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index b8db6875..398bc652 100644 --- a/python/function.py +++ b/python/function.py @@ -477,7 +477,11 @@ class Function(object): def get_comment_at(self, addr): return core.BNGetCommentForAddress(self.handle, addr) + def set_comment_at(self, addr, comment): + core.BNSetCommentForAddress(self.handle, addr, comment) + def set_comment(self, addr, comment): + """Deprecated""" core.BNSetCommentForAddress(self.handle, addr, comment) def get_low_level_il_at(self, addr, arch=None): |
