diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-05-13 10:49:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-05-13 10:49:25 -0300 |
commit | 48912fbbd0abc2bea414a658d2bc7019ec519b7d (patch) | |
tree | e1b04ea49c13836cfc621ea3793d22ed3a0e54ad | |
parent | 3719637cf414560b078f23a059ec4de4da7e7fd8 (diff) | |
download | ckandumper-48912fbbd0abc2bea414a658d2bc7019ec519b7d.tar.gz ckandumper-48912fbbd0abc2bea414a658d2bc7019ec519b7d.tar.bz2 |
Close the file at loadJSON
-rwxr-xr-x | ckandumper | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,7 +52,8 @@ class ckandumper: def loadJSON(self, file): descriptor = open(file) - return json.load(descriptor) + data = json.load(descriptor) + file.close() def dump(self): self.ensuredir(self.dest) |