def admin_url_params(request, params=None):
 params = (params or {})
 if popup_status(request):
  params[IS_POPUP_VAR] = u'1'
 pick_type = popup_pick_type(request)
 if pick_type:
  params[u'_pick'] = pick_type
 return params

def admin_url_params ( request , params = None ) : params = ( params or { } ) if popup_status ( request ) : params [ IS_POPUP_VAR ] = u'1' pick_type = popup_pick_type ( request ) if pick_type : params [ u'_pick' ] = pick_type return params
given a request .