From cffad236bae7c7b630f998fc8baf35177b798947 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 2 Mar 2015 13:15:27 +0100 Subject: [PATCH] [FIX] new flake8 rules --- attachment_preview/model/ir_attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachment_preview/model/ir_attachment.py b/attachment_preview/model/ir_attachment.py index b0f7cf49..c82dd6f6 100644 --- a/attachment_preview/model/ir_attachment.py +++ b/attachment_preview/model/ir_attachment.py @@ -46,8 +46,8 @@ class IrAttachment(Model): try: import magic ms = magic.open( - hasattr(magic, 'MAGIC_MIME_TYPE') - and magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME) + hasattr(magic, 'MAGIC_MIME_TYPE') and + magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME) ms.load() mimetype = ms.buffer( base64.b64decode(this[binary_field]))