def _setup_macros_dict(parser):
    """ initiates the _macros attribute on the parser
    object, allowing for storage of the macros in the parser.
    """
    # Each macro is stored in a new attribute
    # of the 'parser' class. That way we can access it later
    # in the template when processing 'use_macro' tags.
    try:
        # don't overwrite the attribute if it already exists
        parser._macros
    except __HOLE__:
        parser._macros = {}
dataset/ETHPy150Open nalourie/django-macros/build/lib/macros/templatetags/macros.py/_setup_macros_dict