summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/components.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:31:19 +0100
committerChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:31:38 +0100
commit1aeaee3ca41aa909bf994032ddae2d8d1592054e (patch)
treec8e518a3dee1a4405e1f041ed255f3fb6b18650e /pykolab/setup/components.py
parent4284cf68711b43f5702c375951eb00ff98143f00 (diff)
downloadpykolab-1aeaee3ca41aa909bf994032ddae2d8d1592054e.tar.gz
[Python 3]basestring to six string_types
Summary: Using for compatibility from six import string_types and "string_types" for "basestring" as it is still used in pykolab/utils.py Reviewers: #pykolab, #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Subscribers: sicherha Differential Revision: https://git.kolab.org/D3403
Diffstat (limited to 'pykolab/setup/components.py')
-rw-r--r--pykolab/setup/components.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/setup/components.py b/pykolab/setup/components.py
index 49a4f65..e865015 100644
--- a/pykolab/setup/components.py
+++ b/pykolab/setup/components.py
@@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from six import string_types
import os
@@ -224,7 +225,7 @@ def register(component_name, func, group=None, description=None, aliases=[], aft
else:
component = component_name
- if isinstance(aliases, basestring):
+ if isinstance(aliases, string_types):
aliases = [aliases]
if component in components: