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-09-10 08:12:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-10 08:12:48 +0400
commitd1228ea8d8279c736871b94e71cb81fbf73ea2c6 (patch)
treed264235d9a3a5a4979589e47ca40a1e94bafc69f /io_scene_x3d/import_x3d.py
parenta90f3ac68158795efd17aa16229f865406c5e2e0 (diff)
cleanup unused vars
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r--io_scene_x3d/import_x3d.py16
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: