mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
use raw strings where possible to avoid escaping
This commit is contained in:
parent
3a3ae2590e
commit
f04ea0f22e
@ -1153,7 +1153,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
return False
|
||||
val = (int(value) if column == 'rating' else
|
||||
value if column in ('timestamp', 'pubdate')
|
||||
else re.sub('\\s', ' ', unicode_type(value or '').strip()))
|
||||
else re.sub(r'\s', ' ', unicode_type(value or '').strip()))
|
||||
id = self.db.id(row)
|
||||
books_to_refresh = {id}
|
||||
if column == 'rating':
|
||||
|
Loading…
x
Reference in New Issue
Block a user