1e3f7071cf4095abfface461164703106563c459,src/python/pants/engine/exp/mapper.py,AddressMapper,resolve,#AddressMapper#Any#,241

Before Change


    :raises: :class:`ResolveError` if the object could not be resolved.
    
    family = self.family(address.spec_path)
    obj = family.addressables.get(address)
    if not obj:
      raise ResolveError("Object with address {} was not found".format(address))
    return obj

  def walk_addressables(self, rel_path=None, path_excludes=None):
    Return an iterator over all addressable objects found under `rel_path`.

After Change


    Both the set of files that define a mappable BUILD files and the parser used to parse those
    files can be customized.  See the `pants.engine.exp.parsers` module for example parsers.

    :param string build_root: The root of the BUILD files; typically the code repository root
                              directory.
    :param string build_pattern: A regular expression for identifying BUILD files used to resolve
                                 addresses; by default looks for `BUILD*` files.
    :param parser_cls: The BUILD file parser cls to use.
    :type parser_cls: A :class:`pants.engine.exp.parser.Parser`
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 1e3f7071cf4095abfface461164703106563c459
Time: 2016-02-22
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/mapper.py
Class Name: AddressMapper
Method Name: resolve


Project Name: numerai/submission-criteria
Commit Name: 3bf5f2de89807642dcd1e030e45226ff3944779b
Time: 2017-11-10
Author: xander@numer.ai
File Name: common.py
Class Name:
Method Name: get_filename


Project Name: MTG/freesound
Commit Name: 6491077d6a381cdb28a6fe52299c6af19588111e
Time: 2017-12-19
Author: andres.ferraro@upf.edu
File Name: accounts/management/commands/fill_downloads.py
Class Name: Command
Method Name: handle