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

Before Change


  }
  if len(parsed_abis) < 1:
    die("No abi tag found. Expected: {}.".format(expected_abi))
  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:

After Change


    for filename in json.loads(pex_info_content)["distributions"].keys()
    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: 4

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: daavoo/pyntcloud
Commit Name: 55c52a191bb36313c86ea340a024f4fe21eac699
Time: 2016-10-17
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: __init__


Project Name: daavoo/pyntcloud
Commit Name: 847c660e54ec8fea4708463e0dc0fe9f833ed022
Time: 2016-10-18
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: points