From c1ca55837af40300084b737bb93bb8e8670dfc57 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 15 Feb 2016 12:23:27 +0100 Subject: [PATCH] fix flake8 issue --- .../model/fetchmail_server.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/fetchmail_attach_from_folder/model/fetchmail_server.py b/fetchmail_attach_from_folder/model/fetchmail_server.py index b72212169..0c52c1f7f 100644 --- a/fetchmail_attach_from_folder/model/fetchmail_server.py +++ b/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( - dict( - safe_eval(field.attrib['modifiers'], - UnquoteEvalContext({})), - **modifiers[field.attrib['name']]))) + field.set( + 'modifiers', + simplejson.dumps( + dict( + safe_eval( + field.attrib['modifiers'], + UnquoteEvalContext({}) + ), + **modifiers[field.attrib['name']] + ) + ), + ) if (field.tag == 'field' and field.get('name') == 'match_algorithm'): field.set('help', docstr)