a0a4eba7bf111138c9660e35e34e665961d1e720,src/python/twitter/pants/tasks/bootstrap_utils.py,BootstrapUtils,get_jvm_build_tools_classpath,#BootstrapUtils#Any#Any#,23
Before Change
self._products = products
def get_jvm_build_tools_classpath(self, tools, java_runner=None):
tools_tuple = tuple(sorted(tools))
callbacks_map = (self._products.get("jvm_build_tools_classpath_callbacks")
.get("jvm_build_tools_classpath_callbacks"))
return callbacks_map.get(tools_tuple)[0](java_runner=java_runner)
def register_all(self, toolsets):
for toolset in toolsets:
After Change
def get_jvm_build_tools_classpath(self, key, java_runner=None):
Get a callback to resolve the targets previously registered under the key.
callback_product_map = self._products.get_data("jvm_build_tools_classpath_callbacks") or {}
callback = callback_product_map.get(key)
if not callback:
raise TaskError("No bootstrap callback registered for %s" % key)
return callback(java_runner=java_runner)
def register_jvm_build_tools(self, key, tools):
Register a list of targets against a key.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: a0a4eba7bf111138c9660e35e34e665961d1e720
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/bootstrap_utils.py
Class Name: BootstrapUtils
Method Name: get_jvm_build_tools_classpath
Project Name: home-assistant/home-assistant
Commit Name: 7a70496b116569c0581927ed30a5c884dc379c42
Time: 2017-05-06
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes
Project Name: home-assistant/home-assistant
Commit Name: fcdfebefd9d452952d16669c1257292865d7405b
Time: 2017-05-07
Author: pezinek@gmail.com
File Name: homeassistant/components/sensor/wunderground.py
Class Name: WUndergroundSensor
Method Name: device_state_attributes