mercurial/httprepo.py
changeset 11567 34cc8b84407f
parent 11370 db3f6f0e4e7d
child 11587 a036f6bd1da3
--- 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)