Changeset 1155

Show
Ignore:
Timestamp:
08/19/06 00:29:25 (2 years ago)
Author:
athomas
Message:

PollMacro:

Committed fix for Python 2.3, from robert@broofa.com. Closes #594.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pollmacro/0.9/tracpoll/tracpoll.py

    r943 r1155  
    2727            self.votes = dict([(k, v) for k, v in poll['votes'].iteritems() 
    2828                               if k in [d[0] for d in self.vote_defs]]) 
    29         self.votes.update([(k[0], []) for k in self.vote_defs 
    30                            if k[0] not in self.votes]
     29        self.votes.update(dict([(k[0], []) for k in self.vote_defs 
     30                                if k[0] not in self.votes])
    3131 
    3232    def save(self):