summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins/defaultfolders/__init__.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-05 11:51:27 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:50:41 +0100
commit9a5f92139d3fbe7fa1945d38198a9cdc74831ac5 (patch)
tree03fff0f479a90dfaa70c6647dd0923086560dcca /pykolab/plugins/defaultfolders/__init__.py
parentc3b9d5557161f840a8f2c45fc91ec09299593dd9 (diff)
downloadpykolab-9a5f92139d3fbe7fa1945d38198a9cdc74831ac5.tar.gz
[Python 3] Get rid of .has_key()
Summary: `dict.has_key(key)` was dropped in Python 3.0. Use `key in dict` instead. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3241
Diffstat (limited to 'pykolab/plugins/defaultfolders/__init__.py')
-rw-r--r--pykolab/plugins/defaultfolders/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/plugins/defaultfolders/__init__.py b/pykolab/plugins/defaultfolders/__init__.py
index 0b6ee10..a4a59b0 100644
--- a/pykolab/plugins/defaultfolders/__init__.py
+++ b/pykolab/plugins/defaultfolders/__init__.py
@@ -43,7 +43,7 @@ class KolabDefaultfolders(object):
user_folder - user folder
"""
- if not kw.has_key('additional_folders'):
+ if 'additional_folders' not in kw:
log.error(_("Plugin %s called without required keyword %s.") % ("defaultfolders", "additional_folders"))
return {}