(self, pattern, repl, *args, **kwargs)
return c
Replaces a regular expression pattern with repl in both the headers
            and the body of the request. Returns the number of replacements
            made.

            FIXME: Is replace useful on an Error object??
Replaces a regular expression pattern with repl in both the headers
            and the body of the request. Returns the number of replacements
            made.
Replaces a regular expression pattern with repl in both the headers and the body of the request . Returns the number of replacements made .
def replace(self, pattern, repl, *args, **kwargs):
        """
            Replaces a regular expression pattern with repl in both the headers
            and the body of the request. Returns the number of replacements
            made.

            FIXME: Is replace useful on an Error object??
        """
        self.msg, c = utils.safe_subn(pattern, repl, self.msg, *args, **kwargs)
        return c
def replace ( self , pattern , repl , * args , * * kwargs ) : self . msg , c = utils . safe_subn ( pattern , repl , self . msg , * args , * * kwargs ) return c