summaryrefslogtreecommitdiff
path: root/alot/buffers
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-10 14:10:42 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-10 15:17:25 +0100
commit666aab1a3fcd5f33659f67540d23b96fa8fa2f98 (patch)
treed6a047e2c0b34b45e3075d022012157a500d805f /alot/buffers
parent752860cf24fc22208d7e9138d0a13ea5d616b4ca (diff)
Cosmetics, clean up imports
Diffstat (limited to 'alot/buffers')
-rw-r--r--alot/buffers/bufferlist.py8
-rw-r--r--alot/buffers/envelope.py12
-rw-r--r--alot/buffers/namedqueries.py5
-rw-r--r--alot/buffers/search.py6
-rw-r--r--alot/buffers/taglist.py7
-rw-r--r--alot/buffers/thread.py10
6 files changed, 26 insertions, 22 deletions
diff --git a/alot/buffers/bufferlist.py b/alot/buffers/bufferlist.py
index 185b4660..b1dfaded 100644
--- a/alot/buffers/bufferlist.py
+++ b/alot/buffers/bufferlist.py
@@ -1,12 +1,12 @@
# Copyright (C) 2011-2018 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
-import urwid
-from .buffer import Buffer
-from ..widgets.bufferlist import BufferlineWidget
-from ..settings.const import settings
+import urwid
+from .buffer import Buffer
+from ..settings.const import settings
+from ..widgets.bufferlist import BufferlineWidget
class BufferlistBuffer(Buffer):
"""lists all active buffers"""
diff --git a/alot/buffers/envelope.py b/alot/buffers/envelope.py
index ae13d74f..0bc7696f 100644
--- a/alot/buffers/envelope.py
+++ b/alot/buffers/envelope.py
@@ -1,13 +1,15 @@
# Copyright (C) 2011-2018 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
-import urwid
+
import os
-from .buffer import Buffer
-from ..settings.const import settings
-from ..widgets.globals import AttachmentWidget
-from ..helper import shorten_author_string
+import urwid
+
+from .buffer import Buffer
+from ..helper import shorten_author_string
+from ..settings.const import settings
+from ..widgets.globals import AttachmentWidget
def string_sanitize(string, tab_width=8):
r"""
diff --git a/alot/buffers/namedqueries.py b/alot/buffers/namedqueries.py
index 6a76e107..1695ff52 100644
--- a/alot/buffers/namedqueries.py
+++ b/alot/buffers/namedqueries.py
@@ -1,10 +1,11 @@
# Copyright (C) 2011-2018 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
+
import urwid
-from .buffer import Buffer
-from ..settings.const import settings
+from .buffer import Buffer
+from ..settings.const import settings
from ..widgets.namedqueries import QuerylineWidget
diff --git a/alot/buffers/search.py b/alot/buffers/search.py
index a17e6db3..3adce6ed 100644
--- a/alot/buffers/search.py
+++ b/alot/buffers/search.py
@@ -7,11 +7,11 @@ from functools import partial
import urwid
-from .buffer import Buffer
+from .buffer import Buffer
from ..db.errors import QueryError
from ..db.sort import NAME as SORT_NAME
-from ..settings.const import settings
-from ..widgets.search import ThreadlineWidget
+from ..settings.const import settings
+from ..widgets.search import ThreadlineWidget
class IterWalker(urwid.ListWalker):
"""
diff --git a/alot/buffers/taglist.py b/alot/buffers/taglist.py
index e8c8df33..fceedd18 100644
--- a/alot/buffers/taglist.py
+++ b/alot/buffers/taglist.py
@@ -1,11 +1,12 @@
# Copyright (C) 2011-2018 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
+
import urwid
-from .buffer import Buffer
-from ..settings.const import settings
-from ..widgets.globals import TagWidget
+from .buffer import Buffer
+from ..settings.const import settings
+from ..widgets.globals import TagWidget
class TagListBuffer(Buffer):
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index 30d313af..d342db86 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -6,13 +6,13 @@
import asyncio
import enum
import logging
+
import urwid
-from .buffer import Buffer
-from ..settings.const import settings
-from ..widgets.thread import MessageWidget, ThreadNode
-from .. import commands
-from ..db.errors import NonexistantObjectError
+from .buffer import Buffer
+from ..settings.const import settings
+from ..widgets.thread import MessageWidget, ThreadNode
+from ..db.errors import NonexistantObjectError
class _ThreadBufFocus(enum.Enum):
TREE = enum.auto()