1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-15 10:46:40 +00:00

Code cleanup

This commit is contained in:
Ciro Mattia Gonano
2013-03-05 11:27:50 +01:00
parent 2ef148908a
commit 1a9db245bf
3 changed files with 19 additions and 25 deletions

View File

@@ -36,12 +36,6 @@ import cbxarchive
import pdfjpgextract
def sort_nicely(l):
convert = lambda text: int(text) if text.isdigit() else text
alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
l.sort(key=alphanum_key)
def buildHTML(path, imgfile):
filename = getImageFileName(imgfile)
if filename is not None:

View File

@@ -24,6 +24,7 @@ __docformat__ = 'restructuredtext en'
import os
class PdfJpgExtract:
def __init__(self, origFileName):
self.origFileName = origFileName
@@ -69,4 +70,3 @@ class PdfJpgExtract:
njpg += 1
i = iend

View File

@@ -57,7 +57,7 @@ setup(
version=VERSION,
author="Ciro Mattia Gonano",
author_email="ciromattia@gmail.com",
description=("A tool to convert comics (CBR/CBZ/PDFs/image folders) to Mobipocket."),
description="A tool to convert comics (CBR/CBZ/PDFs/image folders) to Mobipocket.",
license="ISC License (ISCL)",
keywords="kindle comic mobipocket mobi cbz cbr manga",
url="http://github.com/ciromattia/kcc",