From: Stefan Behnel Date: Fri, 21 Aug 2009 12:44:50 +0000 (+0200) Subject: fix string typed compiler directives in Py3 X-Git-Tag: 0.12.alpha0~225 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca3f5c6f274dd893662668b1f0c43476959634ad;p=cython.git fix string typed compiler directives in Py3 --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 015fb952..dafe8646 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -439,7 +439,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations): if kwds is not None or len(args) != 1 or not isinstance(args[0], StringNode): raise PostParseError(dec.function.pos, 'The %s option takes one compile-time string argument' % optname) - return (optname, args[0].value) + return (optname, str(args[0].value)) elif optiontype is dict: if len(args) != 0: raise PostParseError(dec.function.pos,