summaryrefslogtreecommitdiff
path: root/alot/buffers/thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-25 18:10:25 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-25 18:10:25 +0200
commita9e8f3271055740c9b96bb83483a09381f15312b (patch)
treed1f3f6dca6432571c74358e4eb4fe7151c0900a6 /alot/buffers/thread.py
parent0c4e47fef27bf2d883dae3270faaef69a58a7067 (diff)
buffer: drop the ui parameter when not needed
Diffstat (limited to 'alot/buffers/thread.py')
-rw-r--r--alot/buffers/thread.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index 8d1aa374..052ed98d 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -38,10 +38,8 @@ class ThreadBuffer(Buffer):
_divider_up = None
_divider_down = None
- def __init__(self, ui, thread):
+ def __init__(self, thread):
"""
- :param ui: main UI
- :type ui: :class:`~alot.ui.UI`
:param thread: thread to display
:type thread: :class:`~alot.db.Thread`
"""
@@ -68,7 +66,7 @@ class ThreadBuffer(Buffer):
self.rebuild()
- super().__init__(ui, self.body)
+ super().__init__()
def __str__(self):
return '[thread] %s (%d message%s)' % (self.thread.subject,