the following will make your code more simple:
for t in tors: tor = KTorrent.torrent(t) for tracker in tor.trackers(): if 'piratebay.org' in tracker: tor.setTrackerEnabled(tracker, 0)
tor.addTracker(...)
More information about formatting options
the following will make your
the following will make your code more simple:
for t in tors:
tor = KTorrent.torrent(t)
for tracker in tor.trackers():
if 'piratebay.org' in tracker:
tor.setTrackerEnabled(tracker, 0)
tor.addTracker(...)