From 6044dd1b2362358f06acab8c220d87f64b37b92c Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 23 Nov 2010 22:45:33 +0100 Subject: Syntax improvement. --- epub/epub.py | 5 ----- epub/ez_epub.py | 4 +--- 2 files changed, 1 insertion(+), 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 -- cgit