summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2017-01-05 12:51:01 -0500
committerGitHub <noreply@github.com>2017-01-05 12:51:01 -0500
commit6cb9a697460a725e563e630ab3c162dc8f8bd307 (patch)
treeac8abf220d1b30cf79c6c6062685dbc2d3732cae
parentddc4bd30f22e40ae4e3aa9347747f1f96912191a (diff)
parentbb1354b61f10cf82bcd7cccf25de3d3fa2dab4ce (diff)
downloadtablib-6cb9a697460a725e563e630ab3c162dc8f8bd307.tar.gz
Merge pull request #266 from wenzhihong2003/master
remove file must be close it.
-rw-r--r--tablib/formats/_dbf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tablib/formats/_dbf.py b/tablib/formats/_dbf.py
index 41c2ef4..a0c183d 100644
--- a/tablib/formats/_dbf.py
+++ b/tablib/formats/_dbf.py
@@ -55,6 +55,7 @@ def export_set(dataset):
else:
stream = StringIO(dbf_stream.read())
dbf_stream.close()
+ os.close(temp_file)
os.remove(temp_uri)
return stream.getvalue()