c745a8583dd385edcae4dd1247abcdeee8be5f0b — Juan M. Bello Rivas 16 years ago 3a516c3
Fixed a bug triggered by Python 2.5

2 files changed, 4 insertions(+), 1 deletions(-)

M Halberd/clientlib.py
M Halberd/crew.py
M Halberd/clientlib.py => Halberd/clientlib.py +3 -0
@@ 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"""

M Halberd/crew.py => Halberd/crew.py +1 -1
@@ 171,7 171,7 @@ class ScanState:
        """Returns the reason of the error condition.
        # 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)