common_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in HTTPError and MissingSourceError (introduced by the Unicode fixes).

This commit is contained in:
david-sarah 2010-06-07 10:47:14 -07:00
parent faade8b20a
commit 731e3d68df
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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):