def get_upload_rate_fudge(self): self.dllock.acquire() try: return DownloadConfigInterface.get_upload_rate_fudge(self) finally: self.dllock.release()