def _is_changelist_popup(request):
 if (IS_POPUP_VAR in request.GET):
  return True
 IS_LEGACY_POPUP_VAR = 'pop'
 if (IS_LEGACY_POPUP_VAR in request.GET):
  warnings.warn(('The `%s` GET parameter has been renamed to `%s`.' % (IS_LEGACY_POPUP_VAR, IS_POPUP_VAR)), PendingDeprecationWarning, 2)
  return True
 return False

def _is_changelist_popup ( request ) : if ( IS_POPUP_VAR in request . GET ) : return True IS_LEGACY_POPUP_VAR = 'pop' if ( IS_LEGACY_POPUP_VAR in request . GET ) : warnings . warn ( ( 'The `%s` GET parameter has been renamed to `%s`.' % ( IS_LEGACY_POPUP_VAR , IS_POPUP_VAR ) ) , PendingDeprecationWarning , 2 ) return True return False
returns true if the popup get parameter is set .