def http_request(self, request):
        if not hasattr(request, "add_unredirected_header"):
            newrequest = Request(request.get_full_url(), request.data,
                                 request.headers)
            try: newrequest.origin_req_host = request.origin_req_host
            except AttributeError: pass
            try: newrequest.unverifiable = request.unverifiable
            except __HOLE__: pass
            try: newrequest.visit = request.visit
            except AttributeError: pass
            request = newrequest
        return request
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/samples-and-tests/i-am-a-developer/mechanize/_upgrade.py/HTTPRequestUpgradeProcessor.http_request