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']
|
fields[key] = div.attrib['value']
|
||||||
else:
|
else:
|
||||||
olist = div.xpath('.//option[@selected="selected"]')
|
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
|
return fields
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@ class IssuePage(NewIssuePage):
|
||||||
else:
|
else:
|
||||||
# XXX: use _parse_selection()?
|
# XXX: use _parse_selection()?
|
||||||
olist = div.xpath('.//option[@selected="selected"]')
|
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['fields'][key] = value
|
||||||
|
|
||||||
params['attachments'] = []
|
params['attachments'] = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue