summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-07-14 14:18:48 +0200
committerLucas Hoffmann <l-m-h@web.de>2016-12-09 11:26:19 +0100
commitfe748a7f47fb61d46dd88c270c2329e6ff19a895 (patch)
tree66bb5dc3145ef621db21e6505d91591e6b414d0f /alot/widgets
parentd89bbe11537abfceb3d0c7b62b9325fceaf51e32 (diff)
Clean up imports
- use relative imports if possible - group imports into standard library, third party, and alot modules - sort imports alphabetically
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/globals.py10
-rw-r--r--alot/widgets/search.py10
-rw-r--r--alot/widgets/thread.py16
3 files changed, 18 insertions, 18 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py
index b72c742e..f4a5659e 100644
--- a/alot/widgets/globals.py
+++ b/alot/widgets/globals.py
@@ -5,14 +5,14 @@
"""
This contains alot-specific :class:`urwid.Widget` used in more than one mode.
"""
-import urwid
import re
import operator
+import urwid
-from alot.helper import string_decode
-from alot.settings import settings
-from alot.db.attachment import Attachment
-from alot.errors import CompletionError
+from ..helper import string_decode
+from ..settings import settings
+from ..db.attachment import Attachment
+from ..errors import CompletionError
class AttachmentWidget(urwid.WidgetWrap):
diff --git a/alot/widgets/search.py b/alot/widgets/search.py
index 6c351f4a..c0b12007 100644
--- a/alot/widgets/search.py
+++ b/alot/widgets/search.py
@@ -6,11 +6,11 @@ Widgets specific to search mode
"""
import urwid
-from alot.settings import settings
-from alot.helper import shorten_author_string
-from alot.helper import tag_cmp
-from alot.widgets.utils import AttrFlipWidget
-from alot.widgets.globals import TagWidget
+from ..settings import settings
+from ..helper import shorten_author_string
+from ..helper import tag_cmp
+from .utils import AttrFlipWidget
+from .globals import TagWidget
class ThreadlineWidget(urwid.AttrMap):
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index 44424992..29d5d7fe 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -4,16 +4,16 @@
"""
Widgets specific to thread mode
"""
-import urwid
import logging
-
-from alot.settings import settings
-from alot.db.utils import decode_header, X_SIGNATURE_MESSAGE_HEADER
-from alot.helper import tag_cmp
-from alot.widgets.globals import TagWidget
-from alot.widgets.globals import AttachmentWidget
+import urwid
from urwidtrees import Tree, SimpleTree, CollapsibleTree
-from alot.db.utils import extract_body
+
+from .globals import TagWidget
+from .globals import AttachmentWidget
+from ..settings import settings
+from ..db.utils import decode_header, X_SIGNATURE_MESSAGE_HEADER
+from ..db.utils import extract_body
+from ..helper import tag_cmp
class MessageSummaryWidget(urwid.WidgetWrap):