platypush/plugins/torrent/__init__.py
def pause(self, torrent):
        """
        Pause/resume a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        """

        if torrent not in self.transfers:
            return None, "No transfer in progress for {}".format(torrent)

        if self.torrent_state[torrent].get('paused', False):
            self.transfers[torrent].resume()
        else:
            self.transfers[torrent].pause()

        return self.torrent_state[torrent]

        Pause/resume a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        
Pause/resume a torrent transfer.
Pause / resume a torrent transfer .
def pause(self, torrent):
        if torrent not in self.transfers:
            return None, "No transfer in progress for {}".format(torrent)
        if self.torrent_state[torrent].get('paused', False):
            self.transfers[torrent].resume()
        else:
            self.transfers[torrent].pause()
        return self.torrent_state[torrent]
def pause ( self , torrent ) : if torrent not in self . transfers : return None , "No transfer in progress for {}" . format ( torrent ) if self . torrent_state [ torrent ] . get ( 'paused' , False ) : self . transfers [ torrent ] . resume ( ) else : self . transfers [ torrent ] . pause ( ) return self . torrent_state [ torrent ]
Pause/resume a torrent transfer.
Pause / resume a torrent transfer .
"""
        Pause/resume a torrent transfer.

        :param torrent: Torrent URL as returned from `get_status()`
        :type torrent: str
        """
self
torrent
Torrent URL as returned from `get_status()`
Torrent URL as returned from ` get_status () `