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:
authorCampbell Barton <ideasman42@gmail.com>2011-04-06 04:17:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-06 04:17:22 +0400
commitaeb3cb5ad051127b8a591b20a68286e839fdad5f (patch)
tree9e7b560bc3ce63f2d4136e82272881c905f9de97 /io_scene_x3d
parent7ac2bd37ddac9bfac18740adc26fc6f9f5e93359 (diff)
update for changes in new api
Diffstat (limited to 'io_scene_x3d')
-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