parameters: (self, file)
return_statement: return result
docstring: dump_syms on Mac needs to be run on a dSYM bundle produced
          by dsymutil(1), so run dsymutil here and pass the bundle name
          down to the superclass method instead.
docstring_summary: dump_syms on Mac needs to be run on a dSYM bundle produced
          by dsymutil(1), so run dsymutil here and pass the bundle name
          down to the superclass method instead.
docstring_tokens: dump_syms on Mac needs to be run on a dSYM bundle produced by dsymutil ( 1 ) so run dsymutil here and pass the bundle name down to the superclass method instead .
function: def ProcessFilesWorkMac(self, file):
          """dump_syms on Mac needs to be run on a dSYM bundle produced
          by dsymutil(1), so run dsymutil here and pass the bundle name
          down to the superclass method instead."""
          self.output_pid(sys.stderr, "Worker running Mac pre-processing on file: %s" % (file,))
  
          # our return is a status and a tuple of files to dump symbols for
          # the extra files are fallbacks; as soon as one is dumped successfully, we stop
          result = { 'status' : False, 'files' : None, 'file_key' : file }
          dsymbundle = file + ".dSYM"
          if os.path.exists(dsymbundle):
              shutil.rmtree(dsymbundle)
          # dsymutil takes --arch=foo instead of -a foo like everything else
          subprocess.call(["dsymutil"] + [a.replace('-a ', '--arch=') for a in self.archs if a]
                          + [file],
                          stdout=open("/dev/null","w"))
          if not os.path.exists(dsymbundle):
              # dsymutil won't produce a .dSYM for files without symbols
              result['status'] = False
              return result
  
          result['status'] = True
          result['files'] = (dsymbundle, file)
          return result
function_tokens: def ProcessFilesWorkMac ( self , file ) : self . output_pid ( sys . stderr , "Worker running Mac pre-processing on file: %s" % ( file , ) ) # our return is a status and a tuple of files to dump symbols for # the extra files are fallbacks; as soon as one is dumped successfully, we stop result = { 'status' : False , 'files' : None , 'file_key' : file } dsymbundle = file + ".dSYM" if os . path . exists ( dsymbundle ) : shutil . rmtree ( dsymbundle ) # dsymutil takes --arch=foo instead of -a foo like everything else subprocess . call ( [ "dsymutil" ] + [ a . replace ( '-a ' , '--arch=' ) for a in self . archs if a ] + [ file ] , stdout = open ( "/dev/null" , "w" ) ) if not os . path . exists ( dsymbundle ) : # dsymutil won't produce a .dSYM for files without symbols result [ 'status' ] = False return result result [ 'status' ] = True result [ 'files' ] = ( dsymbundle , file ) return result