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