tools/fix_b2g_stack.py
def _find_lib(self, lib):
        '''Get a path to the given lib (e.g. 'libxul.so').

        We prefer unstripped versions of the lib, but if all we can find is a
        stripped version, we'll return that.

        If we can't find the lib, we return None.

        '''
        if not self._lib_path_cache:
            self._init_lib_path_cache()

        lib_paths = self._lib_path_cache[lib]
        if not lib_paths:
            return None
        if len(lib_paths) == 1:
            return lib_paths[0]

        lib_path = first(self._lib_has_symbols, lib_paths)
        if not lib_path:
            lib_path = self._lib_path_cache[lib][0]
        self._lib_path_cache[lib] = [lib_path]
        return lib_path
Get a path to the given lib (e.g. 'libxul.so').

        We prefer unstripped versions of the lib, but if all we can find is a
        stripped version, we'll return that.

        If we can't find the lib, we return None.

        
Get a path to the given lib .
We prefer unstripped versions of the lib, but if all we can find is a
stripped version, we'll return that.

If we can't find the lib, we return None.
Get a path to the given lib . We prefer unstripped versions of the lib but if all we can find is a stripped version we ' ll return that . If we can ' t find the lib we return None .
def _find_lib(self, lib):
        if not self._lib_path_cache:
            self._init_lib_path_cache()
        lib_paths = self._lib_path_cache[lib]
        if not lib_paths:
            return None
        if len(lib_paths) == 1:
            return lib_paths[0]
        lib_path = first(self._lib_has_symbols, lib_paths)
        if not lib_path:
            lib_path = self._lib_path_cache[lib][0]
        self._lib_path_cache[lib] = [lib_path]
        return lib_path
def _find_lib ( self , lib ) : if not self . _lib_path_cache : self . _init_lib_path_cache ( ) lib_paths = self . _lib_path_cache [ lib ] if not lib_paths : return None if len ( lib_paths ) == 1 : return lib_paths [ 0 ] lib_path = first ( self . _lib_has_symbols , lib_paths ) if not lib_path : lib_path = self . _lib_path_cache [ lib ] [ 0 ] self . _lib_path_cache [ lib ] = [ lib_path ] return lib_path
Get a path to the given lib (e.g.
Get a path to the given lib ( e . g .
'''Get a path to the given lib (e.g. 'libxul.so').

        We prefer unstripped versions of the lib, but if all we can find is a
        stripped version, we'll return that.

        If we can't find the lib, we return None.

        '''
self
lib