--- a/mercurial/httprepo.py Wed Jul 14 22:59:57 2010 -0300
+++ b/mercurial/httprepo.py Wed Jul 14 23:03:21 2010 -0300
@@ -249,9 +249,9 @@
self.ui.status(_('remote: '), l)
return ret
except socket.error, err:
- if err[0] in (errno.ECONNRESET, errno.EPIPE):
- raise util.Abort(_('push failed: %s') % err[1])
- raise util.Abort(err[1])
+ if err.args[0] in (errno.ECONNRESET, errno.EPIPE):
+ raise util.Abort(_('push failed: %s') % err.args[1])
+ raise util.Abort(err.args[1])
finally:
fp.close()
os.unlink(tempname)