From e7e0ff440c8f44f1289ca2abdbeed2898f26bbeb Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 19 Feb 2015 00:06:17 +0100 Subject: [PATCH] [FIX] Update Travis and fix PEP8 --- .travis.yml | 5 +++-- attachment_preview/model/ir_attachment.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c58be69f..5f06d4c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,9 @@ python: - "2.7" env: - - VERSION="7.0" ODOO_REPO="odoo/odoo" - - VERSION="7.0" ODOO_REPO="OCA/OCB" + - VERSION="7.0" LINT_CHECK=1 + - VERSION="7.0" ODOO_REPO="odoo/odoo" LINT_CHECK=0 + - VERSION="7.0" ODOO_REPO="OCA/OCB" LINT_CHECK=0 virtualenv: system_site_packages: true 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]))