mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use repr when reporting htmlfile names as they can have ansi control codes
This commit is contained in:
parent
a031f07214
commit
09f3dd67b0
@ -152,7 +152,7 @@ class HTMLFile(object):
|
||||
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…
x
Reference in New Issue
Block a user