e77a650432097e3eeb867dfe4fec5235450414bf,src/python/pants/backend/graph_info/tasks/list_owners.py,ListOwners,console_output,#ListOwners#Any#,25
Before Change
if not sources:
raise TaskError("No source was specified")
elif len(sources) > 1:
raise TaskError("Too many sources specified.")
lazy_source_mapper = LazySourceMapper(self.context.address_mapper, self.context.build_graph)
for source in sources:
target_addresses_for_source = lazy_source_mapper.target_addresses_for_source(source)
for address in target_addresses_for_source:
After Change
target_addresses_for_source = lazy_source_mapper.target_addresses_for_source(source)
for address in target_addresses_for_source:
owner_info[source].append(address.spec)
if self.get_options().output_format == "json":
yield json.dumps(owner_info, indent=4, separators=(",", ": "))
else:
if len(sources) > 1:
raise TaskError("Too many sources specified for {} output format."
.format(self.get_options().output_format))
if owner_info.values():
for address_spec in owner_info.values()[0]:
yield address_spec
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: pantsbuild/pants
Commit Name: e77a650432097e3eeb867dfe4fec5235450414bf
Time: 2016-03-06
Author: cheister@gmail.com
File Name: src/python/pants/backend/graph_info/tasks/list_owners.py
Class Name: ListOwners
Method Name: console_output
Project Name: pantsbuild/pants
Commit Name: ef3c4f54d0a80e78f958bf5905313a41df6f196d
Time: 2016-05-12
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
Class Name: BaseZincCompile
Method Name: _verify_zinc_classpath
Project Name: pantsbuild/pants
Commit Name: 2cee9ffb825757cbe8cacfa23f305b3ad8d527ed
Time: 2014-11-04
Author: itykaul@gmail.com
File Name: src/python/pants/backend/jvm/tasks/dependencies.py
Class Name: Dependencies
Method Name: __init__