file.close() isn't required because "

with open(file.name) as f:" is used before
Change-Id: I1168d039e17133f553dd36b424fdeb40fc1631ba
This commit is contained in:
lu-meihong 2018-12-26 18:03:48 -08:00 committed by lumeihong
parent f86d4e0b3a
commit a41e228a1a
1 changed files with 0 additions and 1 deletions

View File

@ -285,7 +285,6 @@ class Backup(object):
with open(file.name) as f:
content = f.readlines()
LOG.info("Content download {0}".format(content))
file.close()
return json.loads(content[0])
def metadata(self):