def resolve_action(bundle, default_debug=None, allow_debug=True):
 if ((not settings.DEBUG) or (not allow_debug)):
  return (True, True)
 if (default_debug is None):
  default_debug = settings.ASSETS_DEBUG
 debug = (bundle.debug if (bundle.debug is not None) else default_debug)
 if (debug == 'merge'):
  return (True, False)
 elif (debug is True):
  return (False, False)
 elif (debug is False):
  return (True, True)
 else:
  raise ValueError(('Invalid debug value: %s' % debug))

def resolve_action ( bundle , default_debug = None , allow_debug = True ) : if ( ( not settings . DEBUG ) or ( not allow_debug ) ) : return ( True , True ) if ( default_debug is None ) : default_debug = settings . ASSETS_DEBUG debug = ( bundle . debug if ( bundle . debug is not None ) else default_debug ) if ( debug == 'merge' ) : return ( True , False ) elif ( debug is True ) : return ( False , False ) elif ( debug is False ) : return ( True , True ) else : raise ValueError ( ( 'Invalid debug value: %s' % debug ) )
decide what needs to be done for the given bundle .