From 6df1ac86b761d04464ecc611a3463968f608af2d Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sun, 11 Aug 2019 11:09:19 +0100 Subject: remove unused imports --- alot/db/__init__.py | 1 - alot/db/manager.py | 1 - alot/helper.py | 3 --- tests/db/test_message.py | 2 -- 4 files changed, 7 deletions(-) diff --git a/alot/db/__init__.py b/alot/db/__init__.py index 2c6fd634..fd33448d 100644 --- a/alot/db/__init__.py +++ b/alot/db/__init__.py @@ -3,4 +3,3 @@ # For further details see the COPYING file from .thread import Thread from .message import Message -DB_ENC = 'UTF-8' diff --git a/alot/db/manager.py b/alot/db/manager.py index ed1a8d00..956ddcbc 100644 --- a/alot/db/manager.py +++ b/alot/db/manager.py @@ -13,7 +13,6 @@ import threading from notmuch import Database, NotmuchError, XapianError import notmuch -from . import DB_ENC from .errors import DatabaseError from .errors import DatabaseLockedError from .errors import DatabaseROError diff --git a/alot/helper.py b/alot/helper.py index 886d4e05..79b97ccb 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -6,8 +6,6 @@ from datetime import timedelta from datetime import datetime from collections import deque -from io import BytesIO -from io import StringIO import logging import mimetypes import os @@ -19,7 +17,6 @@ from email.mime.audio import MIMEAudio from email.mime.base import MIMEBase from email.mime.image import MIMEImage from email.mime.text import MIMEText -from email.mime.multipart import MIMEMultipart import asyncio import urwid diff --git a/tests/db/test_message.py b/tests/db/test_message.py index 29ed5ee6..6322a77e 100644 --- a/tests/db/test_message.py +++ b/tests/db/test_message.py @@ -18,8 +18,6 @@ import unittest import mock -from notmuch import NullPointerError - from alot import account from alot.db import message -- cgit v1.2.3