summaryrefslogtreecommitdiffstats
path: root/pykolab/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/base.py')
-rw-r--r--pykolab/base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pykolab/base.py b/pykolab/base.py
index ae9ab25..961d431 100644
--- a/pykolab/base.py
+++ b/pykolab/base.py
@@ -19,14 +19,16 @@
import pykolab
from pykolab.imap import IMAP
+# pylint: disable=invalid-name
conf = pykolab.getConf()
-class Base(object):
+
+class Base:
"""
Abstraction class for functions commonly shared between auth, imap, etc.
"""
def __init__(self, *args, **kw):
- if kw.has_key('domain') and not kw['domain'] == None:
+ if 'domain' in kw and kw['domain'] is not None:
self.domain = kw['domain']
else:
self.domain = conf.get('kolab', 'primary_domain')
@@ -94,4 +96,3 @@ class Base(object):
return conf.get_raw('kolab', key1)
return default
-