import E script from bell labs
This commit is contained in:
parent
dbe0a995f0
commit
6b402b83cf
42 changed files with 359 additions and 218 deletions
|
@ -246,7 +246,7 @@ class fncache(object):
|
|||
'''fill the entries from the fncache file'''
|
||||
self.entries = set()
|
||||
try:
|
||||
fp = self.opener('fncache', mode='rb')
|
||||
fp = self.opener('fncache', mode='r')
|
||||
except IOError:
|
||||
# skip nonexistent file
|
||||
return
|
||||
|
|
|
@ -763,7 +763,7 @@ def mktempcopy(name, emptyok=False, createmode=None):
|
|||
return temp
|
||||
try:
|
||||
try:
|
||||
ifp = posixfile(name, "rb")
|
||||
ifp = posixfile(name, "r")
|
||||
except IOError, inst:
|
||||
if inst.errno == errno.ENOENT:
|
||||
return temp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue