diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-21 17:18:13 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-21 17:18:13 +0000 |
commit | 41e8ff90200bca1c60beb22c110a6278b0b49b00 (patch) | |
tree | 3b8dfc0b93a5fcc1f5d6c29fa60fc9d08585e6f8 | |
parent | fdd9a551e4812649229346d74985939569a880e1 (diff) |
pep8/pyflakes fixes
-rw-r--r-- | alot/helper.py | 1 | ||||
-rwxr-xr-x | alot/init.py | 5 | ||||
-rw-r--r-- | 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 |