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