1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-10 07:19:41 +00:00

Code inspection

This commit is contained in:
Paweł Jastrzębski
2013-03-16 20:05:27 +01:00
parent f195a4ccbf
commit c484cc8fff
3 changed files with 2 additions and 2 deletions

View File

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

View File

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

View File

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