@staticmethod
    @webob.dec.wsgify(RequestClass=wsgi.Request)
    def _dispatch(req):
        match = req.environ['wsgiorg.routing_args'][1]
        if not match:
            return req.environ['extended.app']
        app = match['controller']
        return app
Cleans up all installed packages.
dataset/ETHPy150Open openstack/neutron/neutron/api/extensions.py/ExtensionMiddleware._dispatch--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/BaseLinuxMixin.PackageCleanup