diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-06 04:17:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-06 04:17:22 +0400 |
commit | aeb3cb5ad051127b8a591b20a68286e839fdad5f (patch) | |
tree | 9e7b560bc3ce63f2d4136e82272881c905f9de97 /io_scene_x3d | |
parent | 7ac2bd37ddac9bfac18740adc26fc6f9f5e93359 (diff) |
update for changes in new api
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 4 |
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 |