From ca3f5c6f274dd893662668b1f0c43476959634ad Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 21 Aug 2009 14:44:50 +0200 Subject: [PATCH] fix string typed compiler directives in Py3 --- Cython/Compiler/ParseTreeTransforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2