Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r--io_scene_x3d/import_x3d.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 300a6568..fe8a1589 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1252,7 +1252,9 @@ def gzipOpen(path):
if data is None:
try:
- data = open(path, 'rU').read()
+ filehandle = open(path, 'rU')
+ data = filehandle.read()
+ filehandle.close()
except:
pass