From 41e8ff90200bca1c60beb22c110a6278b0b49b00 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Wed, 21 Dec 2011 17:18:13 +0000 Subject: pep8/pyflakes fixes --- alot/helper.py | 1 - alot/init.py | 5 ++--- alot/message.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/alot/helper.py b/alot/helper.py index bad48213..4d0c01f4 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -2,7 +2,6 @@ from datetime import date from datetime import timedelta from collections import deque from string import strip -import shlex import subprocess import email import mimetypes diff --git a/alot/init.py b/alot/init.py index d73077e9..d88e7346 100755 --- a/alot/init.py +++ b/alot/init.py @@ -1,6 +1,5 @@ #!/usr/bin/env python import sys -import argparse import logging import os @@ -32,6 +31,7 @@ class SubcommandOptions(usage.Options): print alot.__version__ sys.exit(0) + class ComposeOptions(SubcommandOptions): optParameters = [ ['sender', '', None, 'From line'], @@ -47,9 +47,8 @@ class ComposeOptions(SubcommandOptions): self['to'] = ' '.join(args) - class Options(usage.Options): - optFlags = [ ["read-only", "r", 'open db in read only mode'], ] + optFlags = [["read-only", "r", 'open db in read only mode'], ] def colourint(val): val = int(val) diff --git a/alot/message.py b/alot/message.py index e3ad3940..0b8131c1 100644 --- a/alot/message.py +++ b/alot/message.py @@ -546,7 +546,7 @@ class Envelope(object): # remove existing content if reset: - self.headers={} + self.headers = {} # go through multiline, utf-8 encoded headers # we decode the edited text ourselves here as -- cgit v1.2.3