1
0
forked from VimPlug/jedi

Properly raise broken pipe exception

This commit is contained in:
micbou
2018-03-23 17:44:50 +01:00
committed by Dave Halter
parent 04708819fb
commit c6635ccc55

View File

@@ -490,7 +490,7 @@ def pickle_dump(data, file):
# Python on Windows don't throw EPIPE errors for pipes. So reraise them with
# the correct type and error number.
except OSError:
raise IOError(errno.EPIPE)
raise IOError(errno.EPIPE, "Broken pipe")
else:
pickle.dump(data, file, protocol=_PICKLE_PROTOCOL)
file.flush()