From 014caddee60243d02904926c8d56d49151239f18 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sun, 5 Feb 2012 12:49:08 +0100 Subject: [PATCH] folder/Base: Create unambigous MRO inheritence class BaseRepository(object, CustomConfig.ConfigHelperMixin): led to TypeError: Cannot create a consistent method resolution order (MRO) for bases ConfigHelperMixin, object. Switching the inherited classes helps. Signed-off-by: Sebastian Spaeth --- offlineimap/repository/Base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index a096a15..cbbc5f4 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -1,6 +1,5 @@ # Base repository support -# Copyright (C) 2002-2007 John Goerzen -# +# Copyright (C) 2002-2012 John Goerzen & contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +23,7 @@ from offlineimap import CustomConfig from offlineimap.ui import getglobalui from offlineimap.error import OfflineImapError -class BaseRepository(object, CustomConfig.ConfigHelperMixin): +class BaseRepository(CustomConfig.ConfigHelperMixin, object): def __init__(self, reposname, account): self.ui = getglobalui()