From a6472f7b78652f13c277bb1e640dd3982a48cbc2 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 7 Apr 2011 22:52:25 -0700 Subject: [PATCH] Be a bit more liberal about top-of-the-file directives. --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 26de5dd2..623af4d7 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -2794,7 +2794,7 @@ def p_code(s, level=None): repr(s.sy), repr(s.systring))) return body -COMPILER_DIRECTIVE_COMMENT_RE = re.compile(r"^#\s*cython:\s*((\w|[.])+\s*=.*)$") +COMPILER_DIRECTIVE_COMMENT_RE = re.compile(r"^#\s*cython\s*:\s*((\w|[.])+\s*=.*)$") def p_compiler_directive_comments(s): result = {} -- 2.26.2