Changeset 120:e103a74a8d84
- Timestamp:
- 02/03/09 07:39:00 (18 months ago)
- Author:
- Nicolas ?vrard <nicoe@…>
- Children:
- 121:90c6fb00ea5a, 123:dfee8d6b2bca
- Branch:
- default
- Message:
-
Use python2.5 idiom
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r115
|
r120
|
|
| 326 | 326 | |
| 327 | 327 | # - we create a <py:xxx> node |
| 328 | | if attr is not None: |
| 329 | | attribs = {attr: a_val} |
| 330 | | else: |
| 331 | | attribs = {} |
| | 328 | attribs = {attr: a_val} if attr is not None else {} |
| 332 | 329 | genshi_node = EtreeElement('{%s}%s' % (py_namespace, |
| 333 | 330 | directive), |