0f80c70a2bdaffbf4b1797aea481a62641701e93,src/python/pants/releases/reversion.py,,reversion,#Any#,92

Before Change


    record_file = os.path.join(dist_info_dir, "RECORD")

    // Load metadata for the input whl.
    with open(os.path.join(workspace, dist_info_dir, "metadata.json"), "r") as info:
      metadata = json.load(info)
    input_version = metadata["version"]

    // Rewrite and move all files (including the RECORD file), recording which files need to be
    // re-fingerprinted due to content changes.

After Change


    metadata_file = os.path.join(workspace, dist_info_dir, "METADATA")
    with open(metadata_file, "r") as info:
      for line in info:
        mo = _version_re.match(line)
        if mo:
          input_version = mo.group("version")
          break
    if not input_version:
      raise Exception("Could not find `Version:` line in {}".format(metadata_file))

    // Rewrite and move all files (including the RECORD file), recording which files need to be
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 0f80c70a2bdaffbf4b1797aea481a62641701e93
Time: 2018-10-14
Author: benjyw@gmail.com
File Name: src/python/pants/releases/reversion.py
Class Name:
Method Name: reversion


Project Name: MolSSI/QCEngine
Commit Name: 0003e408505b4634961af84c1bd0f1503fe92f95
Time: 2020-07-30
Author: lori.burns@gmail.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: get_version


Project Name: pandas-dev/pandas
Commit Name: 3639cb704267812603c47941145a8a754a1deb98
Time: 2020-11-17
Author: fangchen.li@outlook.com
File Name: pandas/_version.py
Class Name:
Method Name: git_get_keywords


Project Name: pantsbuild/pants
Commit Name: 0f80c70a2bdaffbf4b1797aea481a62641701e93
Time: 2018-10-14
Author: benjyw@gmail.com
File Name: src/python/pants/releases/reversion.py
Class Name:
Method Name: reversion