From 8bc521d0451c4eece043caa19e66683f9521fbe8 Mon Sep 17 00:00:00 2001 From: Sengian Date: Sat, 15 Oct 2011 21:07:43 +0200 Subject: [PATCH] RTF cleanup --- src/calibre/ebooks/rtf2xml/add_brackets.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/calibre/ebooks/rtf2xml/add_brackets.py b/src/calibre/ebooks/rtf2xml/add_brackets.py index a7888f32b8..d4919d4cd7 100755 --- a/src/calibre/ebooks/rtf2xml/add_brackets.py +++ b/src/calibre/ebooks/rtf2xml/add_brackets.py @@ -11,11 +11,11 @@ # # # # ######################################################################### -import sys, os, tempfile +import sys, os, tempfile + from calibre.ebooks.rtf2xml import copy, check_brackets # note to self. This is the first module in which I use tempfile. A good idea? -""" -""" + class AddBrackets: """ Add brackets for old RTF. @@ -41,6 +41,7 @@ class AddBrackets: self.__copy = copy self.__write_to = tempfile.mktemp() self.__run_level = run_level + def __initiate_values(self): """ """ @@ -82,14 +83,16 @@ class AddBrackets: 'cw