Commit 04234b00 authored by Stefan Behnel's avatar Stefan Behnel

stupid bug ...

parent 1a019507
...@@ -151,9 +151,9 @@ class Context: ...@@ -151,9 +151,9 @@ class Context:
filename_encoding = sys.getdefaultencoding() filename_encoding = sys.getdefaultencoding()
name = source_filename.decode(filename_encoding) name = source_filename.decode(filename_encoding)
s = PyrexScanner(f, name, source_encoding = f.encoding, s = PyrexScanner(f, name, source_encoding = f.encoding,
type_names = type_names, context = self) type_names = type_names, context = self)
tree = Parsing.p_module(s, pxd, full_module_name) tree = Parsing.p_module(s, pxd, full_module_name)
finally: finally:
f.close() f.close()
except UnicodeDecodeError, msg: except UnicodeDecodeError, msg:
......
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