Commit 9e017ea9 authored by Anael Beutot's avatar Anael Beutot
Browse files

Added parent option for tag inspector.

parent a2b10563
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ class DynamicTags(object):
            yield t


def tag_inspector(mod):
def tag_inspector(mod, parent=None):
    """Inspect module to find tags.

    :param module mod: module to inspect
@@ -134,7 +134,7 @@ def tag_inspector(mod):
        logger.debug('Introspected %s with ttl %s.' % (n, ttl))

        # finally add the tag
        tags.append(Tag(n, m, ttl))
        tags.append(Tag(n, m, ttl, parent))

    return tags