Use universal newline input when scanning header files.
diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py
index 9256c4f..d5dc2af 100644
--- a/Tools/bgen/bgen/scantools.py
+++ b/Tools/bgen/bgen/scantools.py
@@ -219,7 +219,7 @@
def openrepairfile(self, filename = "REPAIR"):
try:
- return open(filename, "r")
+ return open(filename, "rU")
except IOError, msg:
print `filename`, ":", msg
print "Cannot open repair file -- assume no repair needed"
@@ -359,12 +359,12 @@
fullname = os.path.join(dir, filename)
#self.report("trying full name %s", `fullname`)
try:
- return open(fullname, 'r')
+ return open(fullname, 'rU')
except IOError:
pass
# If not on the path, or absolute, try default open()
try:
- return open(filename, 'r')
+ return open(filename, 'rU')
except IOError, arg:
raise IOError, (arg, filename)