original_docstring: Play an alert sound for the OS.
docstring: Play an alert sound for the OS.
docstring_tokens: Play an alert sound for the OS .
code: def _alert(sound=None, player=None):
      """Play an alert sound for the OS."""
  
      if sound is None and Options.sound is not None:
          sound = Options.sound
  
      if player is None and Options.player is not None:
          player = Options.player
  
      if player is not None and sound is not None:
          try:
              if player == 'play':
                  subprocess.call([player, '-q', sound])
              else:
                  subprocess.call([player, sound])
          except Exception:
              pass
code_tokens: def _alert ( sound = None , player = None ) : if sound is None and Options . sound is not None : sound = Options . sound if player is None and Options . player is not None : player = Options . player if player is not None and sound is not None : try : if player == 'play' : subprocess . call ( [ player , '-q' , sound ] ) else : subprocess . call ( [ player , sound ] ) except Exception : pass
short_docstring: Play an alert sound for the OS.
short_docstring_tokens: Play an alert sound for the OS .
comment: """Play an alert sound for the OS."""