ecdbf24fcaa1c8586a3d3acc1bba87aea974d7e3,src/python/pants/targets/python_target.py,PythonTarget,resources,#PythonTarget#,70
Before Change
@property
def resources(self):
return self.payload.resources
def walk(self, work, predicate=None):
super(PythonTarget, self).walk(work, predicate)
if self.provides and self.provides.binaries:
After Change
@property
def resources(self):
resource_targets = []
if self._resource_target_specs:
def get_target(spec):
tgt = self._build_graph.get_target_from_spec(spec)
if tgt is None:
raise TargetDefinitionException(self, "No such resource target: %s" % spec)
return tgt
resource_targets.extend(map(get_target, self._resource_target_specs))
if self.payload.resources:
if not self._synthetic_resources_target:
// This must happen lazily: we don"t have enough context in __init__() to do this there.
self._synthetic_resources_target = self._synthesize_resources_target()
resource_targets.append(self._synthetic_resources_target)
return resource_targets
def walk(self, work, predicate=None):
super(PythonTarget, self).walk(work, predicate)
if self.provides and self.provides.binaries:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pantsbuild/pants
Commit Name: ecdbf24fcaa1c8586a3d3acc1bba87aea974d7e3
Time: 2014-05-21
Author: benjy@foursquare.com
File Name: src/python/pants/targets/python_target.py
Class Name: PythonTarget
Method Name: resources
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 4943783b1e0a6ffd507c1e570844994b2c228247
Time: 2019-04-17
Author: deitz@google.com
File Name: perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py
Class Name:
Method Name: Run
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: ff34597cae0d0fd171671dafca0dd1d937e4b7d1
Time: 2018-09-12
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_benchmarks/mnist_benchmark.py
Class Name:
Method Name: Run