From 731e3d68dff0f8c95da69d9d74c167a84b1d74fd Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Mon, 7 Jun 2010 10:47:14 -0700
Subject: [PATCH] common_http.py, tahoe_cp.py: Fix an error in calling the
 superclass constructor in HTTPError and MissingSourceError (introduced by the
 Unicode fixes).

---
 src/allmydata/scripts/common_http.py | 2 +-
 src/allmydata/scripts/tahoe_cp.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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