summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-17 15:42:25 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-17 15:42:25 +0100
commit76d5a99bd6c862d9092f8a93de81b0043a83b73d (patch)
treee7f9cf9a9681d72c49ee990d35d23a7f3b9bc00f /alot/widgets
parent75fefd295e76181e8c1072c94213f19aad206da8 (diff)
Turn method into static method
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/thread.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index 80bc5833..a0aa16d3 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -377,5 +377,6 @@ class ThreadTree(Tree):
def prev_sibling_position(self, pos):
return self._prev_sibling_of.get(pos)
- def position_of_messagetree(self, mt):
+ @staticmethod
+ def position_of_messagetree(mt):
return mt._message.get_message_id()