3f5e994767718a930681d75bd59154525b02cd18,src/python/twitter/pants/targets/python_binary.py,PythonBinary,__init__,#PythonBinary#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,24

Before Change


      raise TargetDefinitionException(
          "ERROR: no source or dependencies declared for target %s" % name)
    if source and entry_point:
      raise TargetDefinitionException(
          "Can only declare an entry_point if no source binary is specified.")
    if not isinstance(platforms, (list, tuple)) and not isinstance(platforms, Compatibility.string):
      raise TargetDefinitionException("platforms must be a list, tuple or string.")
    if not isinstance(interpreters, (list, tuple)):
      raise TargetDefinitionException("interpreters must be a list or tuple.")

After Change


    self._repositories = maybe_list(repositories or [])
    self._indices = maybe_list(indices or [])
    self._ignore_errors = bool(ignore_errors)
    self._platforms = tuple(maybe_list(platforms or []))

    if source and entry_point:
      entry_point_module = entry_point.split(":", 1)[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 3f5e994767718a930681d75bd59154525b02cd18
Time: 2014-01-19
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/targets/python_binary.py
Class Name: PythonBinary
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 349e93904c3786f0f0a816551dafee4af921102c
Time: 2020-07-01
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/pants_requirement.py
Class Name: PantsRequirement
Method Name: __call__


Project Name: pantsbuild/pants
Commit Name: 6ffda41d1538a5f8e6eab953346a95505c84c40c
Time: 2014-01-17
Author: travis@twitter.com
File Name: src/python/twitter/pants/targets/python_binary.py
Class Name: PythonBinary
Method Name: __init__