import E script from bell labs

This commit is contained in:
mischief 2015-08-25 02:07:46 -07:00
parent dbe0a995f0
commit 6b402b83cf
42 changed files with 359 additions and 218 deletions

View file

@ -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

View file

@ -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