Make pylint happy

This commit is contained in:
Bastian Germann 2019-05-02 19:11:55 +02:00
parent 605eadb0c2
commit 3e23de5bbe
2 changed files with 3 additions and 2 deletions

View File

@ -333,7 +333,8 @@ class MessageListener(object):
# the conversion has already been done at this point.
file_type = file_path.suffix.lower()[1:]
if file_type in PDF_CONTROLLER_FILETYPES:
log.debug('Converting from pdf/xps/oxps/epub/cbz/fb2 to images for serviceitem with file {name}'.format(name=file_path))
log.debug('Converting from pdf/xps/oxps/epub/cbz/fb2 to images for serviceitem with file {name}'
.format(name=file_path))
# Create a copy of the original item, and then clear the original item so it can be filled with images
item_cpy = copy.copy(item)
item.__init__(None)

View File

@ -25,7 +25,7 @@ This module contains tests for the PdfController
import os
from shutil import which
from tempfile import mkdtemp
from unittest import SkipTest, TestCase
from unittest import TestCase
from unittest.mock import MagicMock, patch
from PyQt5 import QtCore, QtGui