# HG changeset patch # User Johannes Bornhold # Date 2016-06-21 06:09:55 # Node ID 0d0c8b939faf9c67cb803d4beb582bd8143ae020 # Parent b082c123e87e3410cf858e9b2748c55956f5ada4 authn: Use type() instead of __class__ attribute. diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -128,7 +128,7 @@ class RhodeCodeAuthPluginBase(object): """ schema_node = self.get_settings_schema().get(name) db_type = self._settings_type_map.get( - schema_node.typ.__class__, 'unicode') + type(schema_node.typ), 'unicode') if name in self._settings_encrypted: db_type = '{}.encrypted'.format(db_type) return db_type