aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-13 10:49:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-13 10:49:25 -0300
commit48912fbbd0abc2bea414a658d2bc7019ec519b7d (patch)
treee1b04ea49c13836cfc621ea3793d22ed3a0e54ad
parent3719637cf414560b078f23a059ec4de4da7e7fd8 (diff)
downloadckandumper-48912fbbd0abc2bea414a658d2bc7019ec519b7d.tar.gz
ckandumper-48912fbbd0abc2bea414a658d2bc7019ec519b7d.tar.bz2
Close the file at loadJSON
-rwxr-xr-xckandumper3
1 files changed, 2 insertions, 1 deletions
diff --git a/ckandumper b/ckandumper
index 1ec05d3..0d3bd31 100755
--- a/ckandumper
+++ b/ckandumper
@@ -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)