Commit 34a04162 authored by Stefan Behnel's avatar Stefan Behnel

Py3 fix

parent db7d6bd2
......@@ -914,7 +914,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
args[0], (ExprNodes.StringNode, ExprNodes.UnicodeNode)):
raise PostParseError(pos,
'The %s directive takes one compile-time string argument' % optname)
return (optname, directivetype(optname, args[0].value))
return (optname, directivetype(optname, str(args[0].value)))
else:
assert False
......
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