From 3e3e6a234822858c68c2cbea291463904409b2d6 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 12 Jul 2009 20:44:43 -0400 Subject: [PATCH] Fix missing self. reference. --- src/calibre/ebooks/pdb/palmdoc/writer.py | 2 +- src/calibre/ebooks/pdb/ztxt/writer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/pdb/palmdoc/writer.py b/src/calibre/ebooks/pdb/palmdoc/writer.py index 2a46308db8..8ca83a8270 100644 --- a/src/calibre/ebooks/pdb/palmdoc/writer.py +++ b/src/calibre/ebooks/pdb/palmdoc/writer.py @@ -48,7 +48,7 @@ class Writer(FormatWriter): writer = TXTMLizer(log) txt = writer.extract_content(oeb_book, opts) - log.debug('\tReplacing newlines with selected type...') + self.log.debug('\tReplacing newlines with selected type...') txt = specified_newlines(TxtNewlines(opts.newline).newline, txt).encode(self.opts.output_encoding, 'replace') txt_length = len(txt) diff --git a/src/calibre/ebooks/pdb/ztxt/writer.py b/src/calibre/ebooks/pdb/ztxt/writer.py index 22f7bf002c..19824fce91 100644 --- a/src/calibre/ebooks/pdb/ztxt/writer.py +++ b/src/calibre/ebooks/pdb/ztxt/writer.py @@ -53,7 +53,7 @@ class Writer(FormatWriter): writer = TXTMLizer(log) txt = writer.extract_content(oeb_book, opts) - log.debug('\tReplacing newlines with selected type...') + self.log.debug('\tReplacing newlines with selected type...') txt = specified_newlines(TxtNewlines(opts.newline).newline, txt).encode(self.opts.output_encoding, 'replace') txt_length = len(txt)