aboutsummaryrefslogtreecommitdiff
path: root/epub
diff options
context:
space:
mode:
Diffstat (limited to 'epub')
-rw-r--r--epub/epub.py5
-rw-r--r--epub/ez_epub.py4
2 files changed, 1 insertions, 8 deletions
diff --git a/epub/epub.py b/epub/epub.py
index 834acee6..16deaf1f 100644
--- a/epub/epub.py
+++ b/epub/epub.py
@@ -12,7 +12,6 @@ from genshi.template import TemplateLoader
from lxml import etree
class TocMapNode:
-
def __init__(self):
self.playOrder = 0
self.title = ''
@@ -30,9 +29,7 @@ class TocMapNode:
for child in self.children:
child.__assignPlayOrder(nextPlayOrder)
-
class EpubItem:
-
def __init__(self):
self.id = ''
self.srcPath = ''
@@ -40,9 +37,7 @@ class EpubItem:
self.mimeType = ''
self.html = ''
-
class EpubBook:
-
def __init__(self):
self.loader = TemplateLoader('./epub/templates')
diff --git a/epub/ez_epub.py b/epub/ez_epub.py
index afd2dbff..ecfd4f5a 100644
--- a/epub/ez_epub.py
+++ b/epub/ez_epub.py
@@ -5,7 +5,6 @@ import epub
from genshi.template import TemplateLoader
class Section:
-
def __init__(self):
self.title = ''
self.paragraphs = []
@@ -34,5 +33,4 @@ def makeBook(title, authors, sections, outputDir, lang='en-US', cover=None):
outputFile = outputDir + 'article.epub'
book.createBook(outputDir)
- book.createArchive(outputDir, outputFile)
- #book.checkEpub('epubcheck-1.0.5.jar', outputFile) \ No newline at end of file
+ book.createArchive(outputDir, outputFile) \ No newline at end of file
bgstack15