From f6c607382751ecc36c31a4e2bf918e49f67df583 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 14 Mar 2010 15:01:35 +0100 Subject: [PATCH] safety fix: a string as source input to the scanner should always be considered a .pyx file for now, regardless of how you name it --- Cython/Compiler/Scanning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index fc07a0d1..98120f0b 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -202,7 +202,7 @@ class StringSourceDescriptor(SourceDescriptor): """ def __init__(self, name, code): self.name = name - self.set_file_type_from_name(name) + #self.set_file_type_from_name(name) self.codelines = [x + "\n" for x in code.split("\n")] self._cmp_name = name -- 2.26.2