Changeset 120:e103a74a8d84

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • relatorio/templates/opendocument.py

    r115 r120  
    326326 
    327327                # - 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 {} 
    332329                genshi_node = EtreeElement('{%s}%s' % (py_namespace, 
    333330                                                       directive),