Commit bae7734e authored by Jack Jansen's avatar Jack Jansen

Use universal newline input when scanning header files.

parent 0c069924
...@@ -219,7 +219,7 @@ if missing: raise "Missing Types" ...@@ -219,7 +219,7 @@ if missing: raise "Missing Types"
def openrepairfile(self, filename = "REPAIR"): def openrepairfile(self, filename = "REPAIR"):
try: try:
return open(filename, "r") return open(filename, "rU")
except IOError, msg: except IOError, msg:
print `filename`, ":", msg print `filename`, ":", msg
print "Cannot open repair file -- assume no repair needed" print "Cannot open repair file -- assume no repair needed"
...@@ -359,12 +359,12 @@ if missing: raise "Missing Types" ...@@ -359,12 +359,12 @@ if missing: raise "Missing Types"
fullname = os.path.join(dir, filename) fullname = os.path.join(dir, filename)
#self.report("trying full name %s", `fullname`) #self.report("trying full name %s", `fullname`)
try: try:
return open(fullname, 'r') return open(fullname, 'rU')
except IOError: except IOError:
pass pass
# If not on the path, or absolute, try default open() # If not on the path, or absolute, try default open()
try: try:
return open(filename, 'r') return open(filename, 'rU')
except IOError, arg: except IOError, arg:
raise IOError, (arg, filename) raise IOError, (arg, filename)
......
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