mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 02:43:12 +02:00
Use repr when reporting htmlfile names as they can have ansi control codes
This commit is contained in:
parent
a031f07214
commit
09f3dd67b0
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ def __hash__(self):
|
|||
return hash(self.path)
|
||||
|
||||
def __str__(self):
|
||||
return 'HTMLFile:%d:%s:%s'%(self.level, 'b' if self.is_binary else 'a', self.path)
|
||||
return 'HTMLFile:%d:%s:%r'%(self.level, 'b' if self.is_binary else 'a', self.path)
|
||||
|
||||
def __repr__(self):
|
||||
return unicode_type(self)
|
||||
|
|
|
|||
Loading…
Reference in a new issue