def prepare_method(self, method):
    'Prepares the given HTTP method.'
    self.method = method
    if (self.method is not None):
        self.method = to_native_string(self.method.upper())
Prepares the given HTTP method.
def prepare_method(self, method):
    
    self.method = method
    if (self.method is not None):
        self.method = to_native_string(self.method.upper())