Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 1325:57220daf40e9
Move urllib error handling from revlog into statichttprepo, where it belongs.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 23 Sep 2005 00:05:16 -0700 |
parents | b3d44e9b3092 |
children | 0e2be889ccd7 |
line wrap: on
line diff
--- a/mercurial/revlog.py Thu Sep 22 23:33:26 2005 -0700 +++ b/mercurial/revlog.py Fri Sep 23 00:05:16 2005 -0700 @@ -12,7 +12,7 @@ from node import * from demandload import demandload -demandload(globals(), "binascii errno heapq mdiff sha struct urllib2 zlib") +demandload(globals(), "binascii errno heapq mdiff sha struct zlib") def hash(text, p1, p2): """generate a hash from the given text and its parent hashes @@ -179,8 +179,6 @@ try: i = self.opener(self.indexfile).read() - except urllib2.URLError: - raise except IOError, inst: if inst.errno != errno.ENOENT: raise