diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2015-12-16 16:49:39 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2015-12-16 16:49:39 +0000 |
commit | a82ae2019b9cf13968c2189d6ac99270f2d639fd (patch) | |
tree | d184e86e9b6f74d178f526d6b184017d186999cf /alot/db/thread.py | |
parent | 539c5e7d46d2492a89a1b4f93a6e3b5e08a47db7 (diff) |
pep8 fixes
Diffstat (limited to 'alot/db/thread.py')
-rw-r--r-- | alot/db/thread.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/db/thread.py b/alot/db/thread.py index a0df09f1..8bb94a10 100644 --- a/alot/db/thread.py +++ b/alot/db/thread.py @@ -39,7 +39,8 @@ class Thread(object): subject = thread.get_subject() elif subject_type == 'oldest': try: - subject = list(thread.get_toplevel_messages())[0].get_header('subject') + first_msg = list(thread.get_toplevel_messages())[0] + subject = first_msg.get_header('subject') except IndexError: subject = '' self._subject = subject @@ -186,7 +187,7 @@ class Thread(object): aname = settings.get('thread_authors_me') if not aname: aname = aaddress - if not aname in authorslist: + if aname not in authorslist: authorslist.append(aname) return ', '.join(authorslist) else: |