tools/fix_b2g_stack.py
def _lib_has_symbols(self, lib_path):
        '''Check if the given lib_path has symbols.

        We do this by running nm on the library.  If it's stripped, nm will not
        output anything to stdout.

        '''
        proc = subprocess.Popen(
            [self._options.cross_bin('nm'), lib_path],
            stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        try:
            return not not proc.stdout.readline()
        except IOError:
            return False
        finally:
            proc.kill()
Check if the given lib_path has symbols.

        We do this by running nm on the library.  If it's stripped, nm will not
        output anything to stdout.

        
Check if the given lib_path has symbols.
We do this by running nm on the library.  If it's stripped, nm will not
output anything to stdout.
Check if the given lib_path has symbols . We do this by running nm on the library . If it ' s stripped nm will not output anything to stdout .
def _lib_has_symbols(self, lib_path):
        proc = subprocess.Popen(
            [self._options.cross_bin('nm'), lib_path],
            stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        try:
            return not not proc.stdout.readline()
        except IOError:
            return False
        finally:
            proc.kill()
def _lib_has_symbols ( self , lib_path ) : proc = subprocess . Popen ( [ self . _options . cross_bin ( 'nm' ) , lib_path ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) try : return not not proc . stdout . readline ( ) except IOError : return False finally : proc . kill ( )
Check if the given lib_path has symbols.
Check if the given lib_path has symbols .
'''Check if the given lib_path has symbols.

        We do this by running nm on the library.  If it's stripped, nm will not
        output anything to stdout.

        '''
self
lib_path