a3cb9c08f86c193f76336284580ff302981388d7,build-support/bin/check_pants_pex_abi.py,,main,#,21

Before Change


  elif len(parsed_abis) > 1:
    die("Multiple abi tags found. Expected: {}, found: {}.".format(expected_abi, parsed_abis))
  found_abi = list(parsed_abis)[0]
  if found_abi != expected_abi:
    die("pants.pex was built with the incorrect ABI. Expected: {}, found: {}.".format(expected_abi, found_abi))
  success("Success. As expected, pants.pex was built with the ABI {}.".format(expected_abi))


def create_parser():

After Change


    if parse_abi_from_filename(filename) != "none"
  )
  if not parsed_abis.issubset(expected_abis):
    die("pants.pex was built with the incorrect ABI. Expected wheels with: {}, found: {}."
        .format(" or ".join(sorted(expected_abis)), ", ".join(sorted(parsed_abis))))
  success("Success. The pants.pex was built with wheels carrying the expected ABIs: {}."
          .format(", ".join(sorted(parsed_abis))))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: a3cb9c08f86c193f76336284580ff302981388d7
Time: 2019-04-13
Author: john.sirois@gmail.com
File Name: build-support/bin/check_pants_pex_abi.py
Class Name:
Method Name: main


Project Name: biolab/orange3
Commit Name: 98db5aee14036ca20b4e16ebedab22e2404bcf45
Time: 2015-10-09
Author: kerncece@gmail.com
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: OWFile_1


Project Name: pantsbuild/pants
Commit Name: 096b135b0b19f9425d97b1f77afb521f5b8584b5
Time: 2019-05-15
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/backend/python/subsystems/python_native_code.py
Class Name: PythonNativeCode
Method Name: check_build_for_current_platform_only