Remove trailing whitspace from *.py

This commit is contained in:
Andrew Resch 2008-11-17 00:57:32 +00:00
commit a0bf6d8fe1
62 changed files with 1138 additions and 1131 deletions

View file

@ -397,6 +397,14 @@ class Torrent:
else:
status = self.status
if self.is_finished and (self.options["stop_at_ratio"] or self.config["stop_seed_at_ratio"]):
# We're a seed, so calculate the time to the 'stop_share_ratio'
if not status.upload_payload_rate:
return 0
stop_ratio = self.config["stop_seed_ratio"] if self.config["stop_at_seed_ratio"] else self.options["stop_seed_ratio"]
return ((status.all_time_download * stop_ratio) - status.all_time_upload) / status.upload_payload_rate
left = status.total_wanted - status.total_done
if left <= 0 or status.download_payload_rate == 0:

View file

@ -50,4 +50,3 @@ class UI:
def disable(self):
pass