try:
os.unlink(f)
except OSError, e:
- if e.errno == errno.ENOENT:
- pass # it doesn't exist, that's what you asked for
+ if e.errno != errno.ENOENT:
+ raise
def readpipe(argv, preexec_fn=None):
name if everything succeeds.
The mode and buffering arguments are handled exactly as with open,
- and the yielded file will have have very restrictive permissions,
- as per mkstemp.
+ and the yielded file will have very restrictive permissions, as
+ per mkstemp.
E.g.::