Skip to content

Commit 1df760e

Browse files
committed
add download function
1 parent 35780b8 commit 1df760e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

urbackup_api/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,7 @@ def download_backup_file(self, clientid, backupid, path="/"):
473473

474474
if response.status != 200:
475475
return None
476-
data = response.read()
477-
response.close()
478-
return data
476+
return response.read()
479477

480478
def get_groups(self):
481479
if not self.login():

0 commit comments

Comments
 (0)