6125549da23a7ea7fac8ead5c62a08a01cef8b88,src/python/pants/backend/python/tasks/python_task.py,PythonTask,__init__,#PythonTask#Any#Any#,18

Before Change


    self.interpreter_cache.setup(filters=compatibilities)

    // Select a default interpreter to use.
    self._interpreter = self.select_interpreter(compatibilities)

  @property
  def interpreter(self):
    Subclasses can use this if they"re fine with the default interpreter (the usual case).

After Change


                                                    logger=self.context.log.debug)
    interpreters = self.context.options.python_interpreters or [b""]
    self.interpreter_cache.setup(filters=interpreters)
    interpreters = self.interpreter_cache.select_interpreter(
      list(self.interpreter_cache.matches(interpreters)))
    if len(interpreters) != 1:
      raise TaskError("Unable to detect suitable interpreter.")
    else:
      self.context.log.debug("Selected %s" % interpreters[0])
    self._interpreter = interpreters[0]

  @property
  def interpreter(self):
    return self._interpreter
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 20

Instances


Project Name: pantsbuild/pants
Commit Name: 6125549da23a7ea7fac8ead5c62a08a01cef8b88
Time: 2014-06-12
Author: benjy@foursquare.com
File Name: src/python/pants/backend/python/tasks/python_task.py
Class Name: PythonTask
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 6ddbe8cef6bb56f88200c5e0d5c49aa4998bbee4
Time: 2014-06-12
Author: pl@foursquare.com
File Name: src/python/pants/backend/python/tasks/python_task.py
Class Name: PythonTask
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 9f175ca7131aafa8c357c22ace108102f6f60f79
Time: 2014-06-11
Author: benjy@foursquare.com
File Name: src/python/pants/backend/python/tasks/python_task.py
Class Name: PythonTask
Method Name: __init__