fix syntax to be compliant with python 2.6
This commit is contained in:
parent
f3ec952b3d
commit
f8505d97c0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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'] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue