python 3.5 support
[tiramisu.git] / tiramisu / autolib.py
index 3c4530b..375dfa2 100644 (file)
@@ -263,13 +263,13 @@ def calculate(option, callback, is_validator, args, kwargs):
     if len(args) != 0 or len(kwargs) != 0:
         msg = _('unexpected error "{0}" in function "{1}" with arguments "{3}" and "{4}" '
                 'for option "{2}"').format(str(error),
-                                           callback.func_name,
+                                           callback.__name__,
                                            option.impl_get_display_name(),
                                            args,
                                            kwargs)
     else:
         msg = _('unexpected error "{0}" in function "{1}" for option "{2}"'
                 '').format(str(error),
-                           callback.func_name,
+                           callback.__name__,
                            option.impl_get_display_name())
     raise ConfigError(msg)