def test_tabs():
 ignore = _tab_ignores[:]
 try:
  import mayavi
 except ImportError:
  ignore.extend((('mne.gui.' + name) for name in ('_coreg_gui', '_fiducials_gui', '_file_traits', '_help', '_kit2fiff_gui', '_marker_gui', '_viewer')))
 for (importer, modname, ispkg) in walk_packages(mne.__path__, prefix='mne.'):
  if ((not ispkg) and (modname not in ignore)):
   try:
    __import__(modname)
   except Exception:
    continue
   mod = sys.modules[modname]
   source = getsource(mod)
   assert_true((' DCTB ' not in source), ('"%s" has tabs, please remove them or add it to theignore list' % modname))

def test_tabs ( ) : ignore = _tab_ignores [ : ] try : import mayavi except ImportError : ignore . extend ( ( ( 'mne.gui.' + name ) for name in ( '_coreg_gui' , '_fiducials_gui' , '_file_traits' , '_help' , '_kit2fiff_gui' , '_marker_gui' , '_viewer' ) ) ) for ( importer , modname , ispkg ) in walk_packages ( mne . __path__ , prefix = 'mne.' ) : if ( ( not ispkg ) and ( modname not in ignore ) ) : try : __import__ ( modname ) except Exception : continue mod = sys . modules [ modname ] source = getsource ( mod ) assert_true ( ( ' DCTB ' not in source ) , ( '"%s" has tabs, please remove them or add it to theignore list' % modname ) )
test that there are no tabs in our source files .