From 35608b78aee400dba96b9e00560ad00cac8d0858 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 21 Aug 2009 13:12:27 +0200 Subject: [PATCH] decode included filenames as we can't handle byte encoded filenames in Py3 --- Cython/Compiler/Parsing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index f4083995..7245c6d2 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1430,6 +1430,7 @@ def p_include_statement(s, ctx): _, include_file_name = p_string_literal(s) s.expect_newline("Syntax error in include statement") if s.compile_time_eval: + include_file_name = include_file_name.decode(s.source_encoding) include_file_path = s.context.find_include_file(include_file_name, pos) if include_file_path: s.included_files.append(include_file_name) -- 2.26.2