authn: Use type() instead of __class__ attribute.

This commit is contained in:
Johannes Bornhold 2016-06-21 08:09:55 +02:00
parent 24e2b4a137
commit cf906eafe6

View file

@ -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