mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-10 04:55:13 +01:00
Correct fix for the formatter strip_results problem -- define the attribute in __init__
This commit is contained in:
parent
eac3ae43e9
commit
3848d7bf7d
1 changed files with 1 additions and 0 deletions
|
|
@ -322,6 +322,7 @@ def __init__(self):
|
|||
string.Formatter.__init__(self)
|
||||
self.book = None
|
||||
self.kwargs = None
|
||||
self.strip_results = True
|
||||
self.locals = {}
|
||||
|
||||
def _do_format(self, val, fmt):
|
||||
|
|
|
|||
Loading…
Reference in a new issue