fix travis (flake8)

This commit is contained in:
Alexandre Fayolle 2015-03-03 14:24:44 +01:00 committed by vancouver29
parent 6765c04043
commit e59f482802

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