parameters: (self, line)
docstring: pause <name> -- Pauses a download by name.
docstring_summary: pause <name> -- Pauses a download by name.
docstring_tokens: pause <name > -- Pauses a download by name .
function: def do_pause(self, line):
          """pause <name> -- Pauses a download by name."""
          if self.selection_type is None:
              print "Error: No feed/playlist selected."
              return
          item = self._find_item(line)
          if item is None:
              print "No item named %r" % line
              return
          if item.get_state() == 'downloading':
              item.pause()
          else:
              print '%s is not being downloaded' % item.get_title()
function_tokens: def do_pause ( self , line ) : if self . selection_type is None : print "Error: No feed/playlist selected." return item = self . _find_item ( line ) if item is None : print "No item named %r" % line return if item . get_state ( ) == 'downloading' : item . pause ( ) else : print '%s is not being downloaded' % item . get_title ( )