From 6110eaaafe12cac0339cb0bdcc135e1b3f2c2220 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 14 Jul 2017 14:14:29 -0400 Subject: adding set_comment_at deprecating set_comment for consistency --- python/function.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python') 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): -- cgit v1.3.1