da0989f9f00cf2a9eca58410a721d23a1fdf72bb,contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_checkstyle.py,CheckstyleTest,build_checker_wheel,#Any#,34

Before Change



    for root, _, files in os.walk(root_dir):
      for f in files:
        if f.endswith(".whl"):
          return os.path.join(root, f)

    raise AssertionError("Failed to generate a wheel for {}".format(target))

  @staticmethod
  def install_wheel(wheel, root_dir):

After Change


    wheel_files = Path(root_dir).rglob("*.whl")
    if not wheel_files:
      raise AssertionError(f"Failed to generate a wheel for {target}")
    return str(next(wheel_files))

  @staticmethod
  def install_wheel(wheel, root_dir):
    importable_path = os.path.join(root_dir, "install", os.path.basename(wheel))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: da0989f9f00cf2a9eca58410a721d23a1fdf72bb
Time: 2019-08-19
Author: ericarellano@me.com
File Name: contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_checkstyle.py
Class Name: CheckstyleTest
Method Name: build_checker_wheel


Project Name: thenetcircle/dino
Commit Name: dfae0dae92e64b05a2dd129a4ad46ab53b7aa0fa
Time: 2016-10-27
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: ban_duration_to_timestamp


Project Name: rodluger/starry
Commit Name: 34b0c301dd2b57ecce97339d9ac7f0f29a7df825
Time: 2019-03-12
Author: rodluger@gmail.com
File Name: starry/map/pybase.py
Class Name: PythonMapBase
Method Name: show