diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-10 08:12:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-10 08:12:48 +0400 |
commit | d1228ea8d8279c736871b94e71cb81fbf73ea2c6 (patch) | |
tree | d264235d9a3a5a4979589e47ca40a1e94bafc69f /io_scene_x3d/import_x3d.py | |
parent | a90f3ac68158795efd17aa16229f865406c5e2e0 (diff) |
cleanup unused vars
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 1ee0e9f5..7ae4bb09 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -1223,19 +1223,13 @@ class vrmlNode(object): def gzipOpen(path): - try: - import gzip - except: - gzip = None + import gzip data = None - if gzip: - try: - data = gzip.open(path, 'r').read() - except: - pass - else: - print('\tNote, gzip module could not be imported, compressed files will fail to load') + try: + data = gzip.open(path, 'r').read() + except: + pass if data is None: try: |