File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,8 @@ if __name__ == '__main__':
101
101
102
102
# It's nice to have mlab in the namespace, but we'll import it
103
103
# after the other stuff so getting usage is not interminable
104
- try :
105
- from mayavi import mlab
106
- except ImportError :
107
- from enthought .mayavi import mlab
104
+ from mayavi import mlab
105
+ assert mlab # make pyflakes happy
108
106
109
107
# Now clean up the namespace a bit
110
108
del parser , args
Original file line number Diff line number Diff line change 7
7
8
8
from surfer import Brain
9
9
from surfer import io
10
- try :
11
- from mayavi import mlab
12
- assert mlab
13
- except ImportError :
14
- from enthought .mayavi import mlab
10
+ from mayavi import mlab
15
11
16
12
if 'SUBJECTS_DIR' not in os .environ :
17
13
raise ValueError ('Test suite relies on the definition of SUBJECTS_DIR' )
You can’t perform that action at this time.
0 commit comments