Commit 5ada3451 authored by Stefan Behnel's avatar Stefan Behnel

fix cfunc wrapper docstring generation in Py2: unicode strings should not be prefixed here

parent 67c86b71
......@@ -2669,7 +2669,7 @@ class CFuncType(CType):
self.type = arg.type
self.type_name = 'TYPE%s' % ix
self.type_cname = self.type.declaration_code("")
self.type_displayname = self.type.declaration_code("", for_display=True)
self.type_displayname = str(self.type.declaration_code("", for_display=True))
if self.type.is_extension_type or self.type.is_builtin_type:
self.type_convert = '<%s>' % self.type_name
elif self.type.is_pyobject:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment