From: david-sarah Date: Mon, 7 Jun 2010 17:47:14 +0000 (-0700) Subject: common_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in... X-Git-Url: https://git.rkrishnan.org/module-simplejson.scanner.html?a=commitdiff_plain;h=731e3d68dff0f8c95da69d9d74c167a84b1d74fd;p=tahoe-lafs%2Ftahoe-lafs.git common_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in HTTPError and MissingSourceError (introduced by the Unicode fixes). --- diff --git a/src/allmydata/scripts/common_http.py b/src/allmydata/scripts/common_http.py index 089b4573..1cf76d02 100644 --- a/src/allmydata/scripts/common_http.py +++ b/src/allmydata/scripts/common_http.py @@ -83,4 +83,4 @@ def check_http_error(resp, stderr): class HTTPError(TahoeError): def __init__(self, msg, resp): - TahoeError.__init__(format_http_error(msg, resp)) + TahoeError.__init__(self, format_http_error(msg, resp)) diff --git a/src/allmydata/scripts/tahoe_cp.py b/src/allmydata/scripts/tahoe_cp.py index 2a264119..59c35445 100644 --- a/src/allmydata/scripts/tahoe_cp.py +++ b/src/allmydata/scripts/tahoe_cp.py @@ -29,7 +29,7 @@ def _put_local_file(pathname, inf): class MissingSourceError(TahoeError): def __init__(self, name): - TahoeError.__init__("No such file or directory %s" % quote_output(name)) + TahoeError.__init__(self, "No such file or directory %s" % quote_output(name)) def GET_to_file(url):