Commit f6c60738 authored by Stefan Behnel's avatar Stefan Behnel

safety fix: a string as source input to the scanner should always be...

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
parent 7e1933c7
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment