From e9a6b5e0897b1b11117bb41745108dc6fcc46c41 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Tue, 3 Mar 2015 14:24:44 +0100 Subject: [PATCH] fix travis (flake8) --- attachment_preview/model/ir_attachment.py | 4 ++-- document_url/__openerp__.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/attachment_preview/model/ir_attachment.py b/attachment_preview/model/ir_attachment.py index 908247ff..b00d3474 100644 --- a/attachment_preview/model/ir_attachment.py +++ b/attachment_preview/model/ir_attachment.py @@ -49,8 +49,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])) diff --git a/document_url/__openerp__.py b/document_url/__openerp__.py index e180c771..489af371 100644 --- a/document_url/__openerp__.py +++ b/document_url/__openerp__.py @@ -27,7 +27,8 @@ 'description': """ Module that allows to attach an URL as a document. """, - 'author': "Serv. Tecnolog. Avanzados - Pedro M. Baeza,Odoo Community Association (OCA)", + 'author': "Serv. Tecnolog. Avanzados - Pedro M. Baeza," + "Odoo Community Association (OCA)", 'website': 'http://www.serviciosbaeza.com', 'license': 'AGPL-3', 'depends': [