diff --git a/kcc.py b/kcc.py index c81a806..5f4a4f9 100644 --- a/kcc.py +++ b/kcc.py @@ -32,7 +32,6 @@ except ImportError: exit(1) from kcc import KCC_gui from multiprocessing import freeze_support - if sys.platform == 'darwin': os.environ['PATH'] = '/usr/local/bin:' + os.environ['PATH'] from kcc import KCC_ui_osx as KCC_ui diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index e86e93e..5318e49 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -111,7 +111,6 @@ class WorkerThread(QtCore.QThread): self.emit(QtCore.SIGNAL("addMessage"), 'Conversion interrupted.', 'error') self.emit(QtCore.SIGNAL("modeConvert"), True) - # noinspection PyUnboundLocalVariable def run(self): self.emit(QtCore.SIGNAL("modeConvert"), False) profile = ProfileData.ProfileLabels[str(GUI.DeviceBox.currentText())] diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index d56e5e7..4f92f64 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -689,6 +689,7 @@ def getDirectorySize(start_path='.'): return total_size +# noinspection PyUnusedLocal def createNewTome(parentPath): tomePathRoot = tempfile.mkdtemp('', 'KCC-TMP-') #tomePathRoot = tempfile.mkdtemp('', 'KCC-TMP-', parentPath) diff --git a/kcc/comic2panel.py b/kcc/comic2panel.py index 57a39eb..d7b3503 100644 --- a/kcc/comic2panel.py +++ b/kcc/comic2panel.py @@ -28,7 +28,7 @@ from shutil import rmtree, copytree, move from optparse import OptionParser, OptionGroup from multiprocessing import Pool, Queue, freeze_support try: - # noinspection PyUnresolvedReferences,PyPackageRequirements + # noinspection PyUnresolvedReferences from PIL import Image, ImageStat except ImportError: print "ERROR: Pillow is not installed!" @@ -137,7 +137,7 @@ def splitImage(work): filePath = os.path.join(path, name) # Detect corrupted files try: - image = Image.open(filePath) + Image.open(filePath) except IOError: raise RuntimeError('Cannot read image file %s' % filePath) try: diff --git a/kcc/image.py b/kcc/image.py index 9958f3d..b028dd6 100755 --- a/kcc/image.py +++ b/kcc/image.py @@ -21,7 +21,7 @@ __docformat__ = 'restructuredtext en' import os try: - # noinspection PyUnresolvedReferences,PyPackageRequirements + # noinspection PyUnresolvedReferences from PIL import Image, ImageOps, ImageStat, ImageChops except ImportError: print "ERROR: Pillow is not installed!"