summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-09-22 02:36:45 -0700
committerPatrick Totzke <patricktotzke@gmail.com>2011-09-22 02:36:45 -0700
commit661c4f255f86e9ac56eea0cf7e37b51b4d94ac2a (patch)
treea118ed8a6fcd42670f7bc4d44591426d1e068028
parent05dcb7a9d018b192a950a292af8064c5436ee90c (diff)
parentf60515cfac2cb623f7c9698a2ce10030fbb41637 (diff)
Merge pull request #58 from teythoon/use_new_style_classes
Use new style classes
-rw-r--r--alot/account.py6
-rw-r--r--alot/buffer.py2
-rw-r--r--alot/command.py2
-rw-r--r--alot/completion.py2
-rw-r--r--alot/db.py4
-rw-r--r--alot/message.py4
-rw-r--r--alot/settings.py2
-rw-r--r--alot/ui.py2
8 files changed, 12 insertions, 12 deletions
diff --git a/alot/account.py b/alot/account.py
index 74e9beea..91ef5fff 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -32,7 +32,7 @@ from helper import cmd_output
import helper
-class Account:
+class Account(object):
"""
Datastructure that represents an email account. It manages
this account's settings, can send and store mails to
@@ -159,7 +159,7 @@ class SendmailAccount(Account):
return None
-class AccountManager:
+class AccountManager(object):
"""Easy access to all known accounts"""
allowed = ['realname',
'address',
@@ -256,7 +256,7 @@ class AccountManager:
return abooks
-class AddressBook:
+class AddressBook(object):
def get_contacts(self):
return []
diff --git a/alot/buffer.py b/alot/buffer.py
index 1ea7766b..77eef99e 100644
--- a/alot/buffer.py
+++ b/alot/buffer.py
@@ -27,7 +27,7 @@ from walker import IteratorWalker
from message import decode_header
-class Buffer:
+class Buffer(object):
def __init__(self, ui, widget, name):
self.ui = ui
self.typename = name
diff --git a/alot/command.py b/alot/command.py
index c0bdf44e..d719ca81 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -50,7 +50,7 @@ from message import decode_header
from message import encode_header
-class Command:
+class Command(object):
"""base class for commands"""
def __init__(self, prehook=None, posthook=None):
self.prehook = prehook
diff --git a/alot/completion.py b/alot/completion.py
index f31d0d69..38d1eade 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -25,7 +25,7 @@ import logging
import command
-class Completer:
+class Completer(object):
def complete(self, original, pos):
"""returns a list of completions and cursor positions for the
string original from position pos on.
diff --git a/alot/db.py b/alot/db.py
index 5dca9b88..b96d3841 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -38,7 +38,7 @@ class DatabaseLockedError(DatabaseError):
pass
-class DBManager:
+class DBManager(object):
"""
keeps track of your index parameters, can create notmuch.Query
objects from its Database on demand and implements a bunch of
@@ -174,7 +174,7 @@ class DBManager:
return db.create_query(querystring)
-class Thread:
+class Thread(object):
def __init__(self, dbman, thread):
"""
:param dbman: db manager that is used for further lookups
diff --git a/alot/message.py b/alot/message.py
index fc2a7477..e8cf539c 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -29,7 +29,7 @@ from settings import get_mime_handler
from settings import config
-class Message:
+class Message(object):
def __init__(self, dbman, msg, thread=None):
"""
:param dbman: db manager that is used for further lookups
@@ -279,7 +279,7 @@ def encode_header(key, value):
return value
-class Attachment:
+class Attachment(object):
"""represents a single mail attachment"""
def __init__(self, emailpart):
diff --git a/alot/settings.py b/alot/settings.py
index feabedaf..1aa7b682 100644
--- a/alot/settings.py
+++ b/alot/settings.py
@@ -388,7 +388,7 @@ class AlotConfigParser(DefaultsConfigParser):
return cmdline
-class HookManager:
+class HookManager(object):
def setup(self, hooksfile):
hf = os.path.expanduser(hooksfile)
if os.path.isfile(hf):
diff --git a/alot/ui.py b/alot/ui.py
index 88759289..2e58dc86 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -45,7 +45,7 @@ class MainWidget(urwid.Frame):
urwid.Frame.keypress(self, size, key)
-class UI:
+class UI(object):
buffers = []
current_buffer = None