

def process_view(self, request, view_func, view_args, view_kwargs):
    'Take request and view function and process with arguments.'
    from django.shortcuts import render_to_response
    from django.template import RequestContext
    try:
        from django.http.response import HttpResponseBase as RBase
    except ImportError:
        from django.http import HttpResponse as RBase
    res = view_func(request, *view_args, **view_kwargs)
    if isinstance(res, basestring):
        res = (res, {
            
        })
    if isinstance(res, RBase):
        return res
    if isinstance(view_func, tuple):
        (template_name, context) = res
        res = render_to_response(template_name, context, RequestContext(request))
    return res

dataset/ETHPy150Open amitu/importd/importd/__init__.py SmartReturnMiddleware.process_view/VarMisuse@117/163 `res`->`view_func`