fix syntax to be compliant with python 2.6

This commit is contained in:
Romain Bignon 2014-03-30 13:57:14 +02:00
commit f8505d97c0
2 changed files with 2 additions and 2 deletions

View file

@ -203,7 +203,7 @@ class RedmineBrowser(BaseBrowser):
fields[key] = div.attrib['value']
else:
olist = div.xpath('.//option[@selected="selected"]')
fields[key] = ', '.join({i.attrib['value'] for i in olist})
fields[key] = ', '.join([i.attrib['value'] for i in olist])
return fields

View file

@ -430,7 +430,7 @@ class IssuePage(NewIssuePage):
else:
# XXX: use _parse_selection()?
olist = div.xpath('.//option[@selected="selected"]')
value = ', '.join({i.attrib['value'] for i in olist})
value = ', '.join([i.attrib['value'] for i in olist])
params['fields'][key] = value
params['attachments'] = []