summaryrefslogtreecommitdiff
path: root/python/highlight.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-03 11:12:56 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:43 -0400
commit5c82c6036e04936e253d2031f73f8218bbed06aa (patch)
tree7ef969a79c88e4277d495fbae1cef5131d43f6ec /python/highlight.py
parentd28dc76f738c1b3c6469213c2582ca7680b8fefe (diff)
Commonize _to_core_struct/_from_core_struct
Improve implementation of immutable_copy/mutable_copy
Diffstat (limited to 'python/highlight.py')
-rw-r--r--python/highlight.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/highlight.py b/python/highlight.py
index 59c9025a..e76d0c10 100644
--- a/python/highlight.py
+++ b/python/highlight.py
@@ -151,7 +151,7 @@ class HighlightColor:
return "<color: #%.2x%.2x%.2x, alpha %d>" % (self.red, self.green, self.blue, self.alpha)
return "<color>"
- def _get_core_struct(self):
+ def _to_core_struct(self) -> core.BNHighlightColor:
result = core.BNHighlightColor()
result.style = self.style
result.color = HighlightStandardColor.NoHighlightColor