Changeset 472:f8042115c7e6 in livinglogic.python.www

Show
Ignore:
Timestamp:
06/22/07 15:55:14 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use generator expression.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • site/Python_xmlns.py

    r471 r472  
    11681168 
    11691169    def _children(self, path, activepath): 
    1170         e = html.ul() 
    1171         for child in path[-1].getChildren(): 
    1172             e.append(self._node(path + [child], activepath)) 
    1173         return e 
     1170        return html.ul(self._node(path + [child], activepath) for child in path[-1].getChildren()) 
    11741171 
    11751172    def _links(self, context):