Mercurial > genshi > genshi-test
comparison markup/path.py @ 169:ce0bfdff334c
Fix syntax error in `path` module.
author | cmlenz |
---|---|
date | Fri, 18 Aug 2006 11:37:40 +0000 |
parents | 110f90a0637c |
children | a2e0a7986d19 |
comparison
equal
deleted
inserted
replaced
168:40b32b020fd6 | 169:ce0bfdff334c |
---|---|
565 assert item[0] is TEXT | 565 assert item[0] is TEXT |
566 item = item[1] | 566 item = item[1] |
567 strings.append(item) | 567 strings.append(item) |
568 return u''.join(strings) | 568 return u''.join(strings) |
569 def __repr__(self): | 569 def __repr__(self): |
570 return 'concat(%s)' % [repr(expr for expr in self.exprs)] | 570 return 'concat(%s)' % ', '.join([repr(expr) for expr in self.exprs]) |
571 | 571 |
572 class ContainsFunction(Function): | 572 class ContainsFunction(Function): |
573 """The `contains` function, which returns whether a string contains a given | 573 """The `contains` function, which returns whether a string contains a given |
574 substring. | 574 substring. |
575 """ | 575 """ |