Use universal newline input when scanning header files.

This commit is contained in:
Jack Jansen 2002-08-04 21:55:25 +00:00
parent 0c069924e5
commit bae7734eef
1 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ if missing: raise "Missing Types"
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 @@ if missing: raise "Missing Types"
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)