Show More
@@ -518,6 +518,7 b' class basealiasrules(object):' | |||
|
518 | 518 | raise error.ParseError(_('infinite expansion of %(section)s ' |
|
519 | 519 | '"%(name)s" detected') |
|
520 | 520 | % {'section': cls._section, 'name': a.name}) |
|
521 | # get cacheable replacement tree by expanding aliases recursively | |
|
521 | 522 | expanding.append(a) |
|
522 | 523 | if a.name not in cache: |
|
523 | 524 | cache[a.name] = cls._expand(aliases, a.replacement, expanding, |
@@ -526,6 +527,7 b' class basealiasrules(object):' | |||
|
526 | 527 | expanding.pop() |
|
527 | 528 | if a.args is None: |
|
528 | 529 | return result |
|
530 | # substitute function arguments in replacement tree | |
|
529 | 531 | l = cls._getlist(tree[2]) |
|
530 | 532 | if len(l) != len(a.args): |
|
531 | 533 | raise error.ParseError(_('invalid number of arguments: %d') |
General Comments 0
You need to be logged in to leave comments.
Login now