diff hgext/largefiles/remotestore.py @ 15188:8e115063950d

largefiles: don't break existing tests (syntax error, bad imports)
author Greg Ward <greg@gerg.ca>
date Sat, 01 Oct 2011 16:39:51 -0400
parents cfccd3bee7b3
children 6e809bb4f969
line wrap: on
line diff
--- a/hgext/largefiles/remotestore.py	Sat Oct 01 16:18:51 2011 -0500
+++ b/hgext/largefiles/remotestore.py	Sat Oct 01 16:39:51 2011 -0400
@@ -7,7 +7,6 @@
 '''Remote largefile store; the base class for servestore'''
 
 import urllib2
-import HTTPError
 
 from mercurial import util
 from mercurial.i18n import _
@@ -57,7 +56,7 @@
 
         try:
             length, infile = self._get(hash)
-        except HTTPError, e:
+        except urllib2.HTTPError, e:
             # 401s get converted to util.Aborts; everything else is fine being
             # turned into a StoreError
             raise basestore.StoreError(filename, hash, self.url, str(e))