Always read line-by-line with mode rU

This commit is contained in:
Tom Payne
2014-02-23 13:50:54 +01:00
parent 1d2c88efb9
commit 3aedca7bd6
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def main(argv):
common, vertex, fragment = [], [], []
attributes, uniforms, varyings = {}, {}, {}
block = None
for line in open(options.input):
for line in open(options.input, 'rU'):
if line.startswith('//!'):
m = re.match(r'//!\s+NAMESPACE=(\S+)\s*\Z', line)
if m: