def getunpackers():
 path = __path__
 prefix = (__name__ + '.')
 unpackers = []
 interface = ['unpack', 'detect', 'PRIORITY']
 for (_importer, modname, _ispkg) in pkgutil.iter_modules(path, prefix):
  if (('tests' not in modname) and (modname not in BLACKLIST)):
   try:
    module = __import__(modname, fromlist=interface)
   except ImportError:
    raise UnpackingError(('Bad unpacker: %s' % modname))
   else:
    unpackers.append(module)
 return sorted(unpackers, key=(lambda mod: mod.PRIORITY))

def getunpackers ( ) : path = __path__ prefix = ( __name__ + '.' ) unpackers = [ ] interface = [ 'unpack' , 'detect' , 'PRIORITY' ] for ( _importer , modname , _ispkg ) in pkgutil . iter_modules ( path , prefix ) : if ( ( 'tests' not in modname ) and ( modname not in BLACKLIST ) ) : try : module = __import__ ( modname , fromlist = interface ) except ImportError : raise UnpackingError ( ( 'Bad unpacker: %s' % modname ) ) else : unpackers . append ( module ) return sorted ( unpackers , key = ( lambda mod : mod . PRIORITY ) )
scans the unpackers dir .