Code cleanup
This commit is contained in:
1 parent
2ef148908a
commit
1a9db245bf
3 files changed
+2
-8
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user