From: Stefan Behnel Date: Sun, 14 Mar 2010 14:01:35 +0000 (+0100) Subject: safety fix: a string as source input to the scanner should always be considered a... X-Git-Tag: 0.13.beta0~286 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6c607382751ecc36c31a4e2bf918e49f67df583;p=cython.git 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 --- 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