mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
unnecessary regex (manual)
ruff 'RUF055'
This commit is contained in:
parent
bd59682f46
commit
567a0187f3
@ -5,7 +5,6 @@ from __future__ import print_function
|
||||
__license__ = 'GPL v3'
|
||||
|
||||
import datetime
|
||||
import re
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
__license__ = 'GNU General Public License v3 - http://www.gnu.org/copyleft/gpl.html'
|
||||
__copyright__ = 'tomashnyk@gmail.com'
|
||||
|
||||
import re
|
||||
|
||||
# This imports the version bundled with Calibre
|
||||
import lxml
|
||||
|
@ -116,7 +116,7 @@ class TextileMLizer(OEB2HTML):
|
||||
# blank paragraph
|
||||
text = re.sub(r'\n(p.*\.)\n', r'\n\1 \n\n', text)
|
||||
# blank paragraph
|
||||
text = re.sub('\n\xa0', r'\np. ', text)
|
||||
text = text.replace('\n\xa0', '\np. ')
|
||||
# blank paragraph
|
||||
text = re.sub('\np[<>=]{1,2}?\\. \xa0', r'\np. ', text)
|
||||
text = re.sub(r'(^|\n)(p.*\. ?\n)(p.*\.)', r'\1\3', text)
|
||||
|
@ -6,7 +6,6 @@ __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
|
||||
from qt.core import QModelIndex
|
||||
|
Loading…
x
Reference in New Issue
Block a user