summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/scantools.py6
1 files changed, 3 insertions, 3 deletions
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 @@ 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)