safety fix: a string as source input to the scanner should always be considered a...
authorStefan Behnel <scoder@users.berlios.de>
Sun, 14 Mar 2010 14:01:35 +0000 (15:01 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 14 Mar 2010 14:01:35 +0000 (15:01 +0100)
Cython/Compiler/Scanning.py

index fc07a0d11a8337977edd5219c161b33a2586d5aa..98120f0b1fc828b1b45ceb58b92fc77efe020fb1 100644 (file)
@@ -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