Mercurial > genshi > mirror
comparison markup/template.py @ 173:128005041637 trunk
Fix for #33.
author | cmlenz |
---|---|
date | Sun, 20 Aug 2006 11:35:46 +0000 |
parents | ff4f0d89eef7 |
children | 7f96149f28d5 |
comparison
equal
deleted
inserted
replaced
172:ff4f0d89eef7 | 173:128005041637 |
---|---|
873 the template to the context data. | 873 the template to the context data. |
874 """ | 874 """ |
875 if args: | 875 if args: |
876 assert len(args) == 1 | 876 assert len(args) == 1 |
877 ctxt = args[0] | 877 ctxt = args[0] |
878 if ctxt is None: | |
879 ctxt = Context(**kwargs) | |
878 assert isinstance(ctxt, Context) | 880 assert isinstance(ctxt, Context) |
879 else: | 881 else: |
880 ctxt = Context(**kwargs) | 882 ctxt = Context(**kwargs) |
881 | 883 |
882 stream = self.stream | 884 stream = self.stream |