1d7e589968a236873602c322aaa0f42c27bd9210,contrib/go/src/python/pants/contrib/go/tasks/go_run.py,GoRun,execute,#GoRun#,24

Before Change


      res = Xargs.subprocess([binary_path]).execute(self.get_passthru_args())
      if res != 0:
        raise TaskError("{bin} exited non-zero ({res})"
                        .format(bin=os.path.basename(binary_path), res=res))

After Change


      // TODO(cgibb): Wrap with workunit and stdout/stderr plumbing.
      res = Xargs.subprocess([binary_path]).execute(self.get_passthru_args())
      if res != 0:
        raise TaskError(f"{os.path.basename(binary_path)} exited non-zero ({res})")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 1d7e589968a236873602c322aaa0f42c27bd9210
Time: 2019-11-24
Author: asher@asherfoa.com
File Name: contrib/go/src/python/pants/contrib/go/tasks/go_run.py
Class Name: GoRun
Method Name: execute


Project Name: deepchem/deepchem
Commit Name: 763f8721952e8042d6086b103deb2450334be4b3
Time: 2017-03-09
Author: lilleswing@gmail.com
File Name: deepchem/feat/nnscore_utils.py
Class Name:
Method Name: pdbqt_to_pdb


Project Name: pyinstaller/pyinstaller
Commit Name: 771986d12d51dccf21c8b6364813ea4ef265fdd4
Time: 2018-03-25
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/building/utils.py
Class Name:
Method Name: format_binaries_and_datas