Browse Source

fix flake8 issue

pull/363/head
Alexandre Fayolle 9 years ago
parent
commit
c1ca55837a
  1. 15
      fetchmail_attach_from_folder/model/fetchmail_server.py

15
fetchmail_attach_from_folder/model/fetchmail_server.py

@ -262,11 +262,18 @@ class fetchmail_server(models.Model):
for field in view.xpath('//field'):
if field.tag == 'field' and field.get('name') in modifiers:
field.set('modifiers', simplejson.dumps(
field.set(
'modifiers',
simplejson.dumps(
dict(
safe_eval(field.attrib['modifiers'],
UnquoteEvalContext({})),
**modifiers[field.attrib['name']])))
safe_eval(
field.attrib['modifiers'],
UnquoteEvalContext({})
),
**modifiers[field.attrib['name']]
)
),
)
if (field.tag == 'field' and
field.get('name') == 'match_algorithm'):
field.set('help', docstr)

Loading…
Cancel
Save