Merge pull request #43 from gurneyalex/8.0-fix-travis

fix travis (flake8)
This commit is contained in:
Yannick Vaucher 2015-03-03 16:39:46 +01:00
commit 234ce50180
2 changed files with 4 additions and 3 deletions

View File

@ -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]))

View File

@ -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': [