From c745a8583dd385edcae4dd1247abcdeee8be5f0b Mon Sep 17 00:00:00 2001 From: "Juan M. Bello Rivas" Date: Wed, 18 Jul 2007 22:32:54 +0200 Subject: [PATCH] Fixed a bug triggered by Python 2.5 darcs-hash:20070718203254-6d791-c065247a9de950fc4c34c83a3e3b27bf1e3d96f5.gz --- Halberd/clientlib.py | 3 +++ Halberd/crew.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Halberd/clientlib.py b/Halberd/clientlib.py index a6d035a..37362dd 100644 --- a/Halberd/clientlib.py +++ b/Halberd/clientlib.py @@ -69,6 +69,9 @@ class HTTPError(Exception): def __str__(self): return str(self.msg) + def __deepcopy__(self, memo): + return self + class HTTPSError(HTTPError): """Generic HTTPS exception""" diff --git a/Halberd/crew.py b/Halberd/crew.py index ebc13c2..5c16332 100644 --- a/Halberd/crew.py +++ b/Halberd/crew.py @@ -171,7 +171,7 @@ class ScanState: """Returns the reason of the error condition. """ self.__mutex.acquire() - # Since whe don't know what the nature of __error will be we need to + # Since we don't know what the nature of __error will be, we need to # provide a clean copy of it to the caller so that no possible # references or changes to __error can affect the object we return. err = copy.deepcopy(self.__error) -- 2.45.2