Mercurial > hg
changeset 367:73ea73ab3359
Use errno.EPIPE rather than 32
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use errno.EPIPE rather than 32
manifest hash: c9cb2fadf7ef4392b2f16b3f76ca2a39964b7ae0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCsNNOywK+sNU5EO8RAudrAKCGKfgsHmSLdt5HYpUtX4S/QSFCQgCeKb7M
Qld4CLe1M3aktU0tugb51Gs=
=1LB7
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 15 Jun 2005 17:18:06 -0800 |
parents | 21306bd3e0f5 |
children | 4b1cec05f3eb |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jun 15 17:15:38 2005 -0800 +++ b/mercurial/commands.py Wed Jun 15 17:18:06 2005 -0800 @@ -8,7 +8,7 @@ import os, re, sys, signal import fancyopts, ui, hg from demandload import * -demandload(globals(), "mdiff time hgweb traceback random signal") +demandload(globals(), "mdiff time hgweb traceback random signal errno") class UnknownCommand(Exception): pass @@ -743,7 +743,7 @@ except KeyboardInterrupt: u.warn("interrupted!\n") except IOError, inst: - if inst.errno == 32: + if inst.errno == errno.EPIPE: u.warn("broken pipe\n") else: raise