Show More
@@ -509,31 +509,29 b' class basealiasrules(object):' | |||
|
509 | 509 | if not isinstance(tree, tuple): |
|
510 | 510 | return tree |
|
511 | 511 | a = cls._getalias(aliases, tree) |
|
512 |
if a is |
|
|
512 | if a is None: | |
|
513 | return tuple(cls._expand(aliases, t, expanding, cache) | |
|
514 | for t in tree) | |
|
513 | 515 |
|
|
514 | 516 |
|
|
515 | 517 |
|
|
516 | 518 |
|
|
517 | 519 |
|
|
518 |
|
|
|
519 | 'name': a.name}) | |
|
520 | % {'section': cls._section, 'name': a.name}) | |
|
520 | 521 |
|
|
521 | 522 |
|
|
522 | 523 |
|
|
523 | 524 |
|
|
524 | 525 |
|
|
525 | 526 |
|
|
526 |
|
|
|
527 | if a.args is None: | |
|
528 | return result | |
|
527 | 529 |
|
|
528 | 530 |
|
|
529 | 531 |
|
|
530 | 532 |
|
|
531 | 533 |
|
|
532 |
|
|
|
533 | else: | |
|
534 | result = tuple(cls._expand(aliases, t, expanding, cache) | |
|
535 | for t in tree) | |
|
536 | return result | |
|
534 | return cls._expandargs(result, dict(zip(a.args, l))) | |
|
537 | 535 | |
|
538 | 536 | @classmethod |
|
539 | 537 | def expand(cls, aliases, tree): |
General Comments 0
You need to be logged in to leave comments.
Login now