try:
options.compiler_directives = Options.parse_directive_list(pop_arg(), relaxed_bool=True)
except ValueError, e:
- sys.stderr.write("Error in compiler directive: %s\n" % e.message)
+ sys.stderr.write("Error in compiler directive: %s\n" % e.args[0])
sys.exit(1)
else:
sys.stderr.write("Unknown compiler flag: %s\n" % option)
type = PyrexTypes.create_typedef_type(name, base_type, cname,
(visibility == 'extern'))
except ValueError, e:
- error(pos, e.message)
+ error(pos, e.args[0])
type = PyrexTypes.error_type
entry = self.declare_type(name, type, pos, cname, visibility)
type.qualified_name = entry.qualified_name