mirror of
https://github.com/ciromattia/kcc
synced 2026-01-10 07:19:41 +00:00
Code inspection
This commit is contained in:
@@ -226,6 +226,7 @@ def buildOPF(profile, dstdir, title, filelist, cover=None):
|
||||
splitCountUsed = 1
|
||||
for entry in reflist:
|
||||
if entry.endswith("-1"):
|
||||
# noinspection PyRedundantParentheses
|
||||
if ((options.righttoleft and facing == 'left') or (not options.righttoleft and facing == 'right')) and\
|
||||
options.landscapemode:
|
||||
f.write("<itemref idref=\"blank-page" + str(splitCountUsed) + "\" properties=\"layout-blank\"/>\n")
|
||||
|
||||
@@ -28,7 +28,6 @@ import comic2ebook
|
||||
import kindlestrip
|
||||
from image import ProfileData
|
||||
from subprocess import call
|
||||
from subprocess import check_call
|
||||
import os
|
||||
import shutil
|
||||
import stat
|
||||
|
||||
@@ -20,7 +20,7 @@ __copyright__ = '2012-2013, Ciro Mattia Gonano <ciromattia@gmail.com>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
from PIL import Image, ImageOps, ImageDraw, ImageStat
|
||||
from PIL import Image, ImageOps, ImageStat
|
||||
|
||||
|
||||
class ImageFlags:
|
||||
|
||||
Reference in New Issue
Block a user