def wsgiapp2(wrapped):
 if (wrapped is None):
  raise ValueError('wrapped can not be None')
 def decorator(context, request):
  return call_app_with_subpath_as_path_info(request, wrapped)
 if getattr(wrapped, '__name__', None):
  return wraps(wrapped)(decorator)
 return wraps(wrapped, ('__module__', '__doc__'))(decorator)

def wsgiapp2 ( wrapped ) : if ( wrapped is None ) : raise ValueError ( 'wrapped can not be None' ) def decorator ( context , request ) : return call_app_with_subpath_as_path_info ( request , wrapped ) if getattr ( wrapped , '__name__' , None ) : return wraps ( wrapped ) ( decorator ) return wraps ( wrapped , ( '__module__' , '__doc__' ) ) ( decorator )
decorator to turn a wsgi application into a :app:pyramid view callable .