unnecessary regex (manual)

ruff 'RUF055'
This commit is contained in:
un-pogaz 2025-01-24 11:14:20 +01:00
parent bd59682f46
commit 567a0187f3
4 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ from __future__ import print_function
__license__ = 'GPL v3'
import datetime
import re
from calibre.web.feeds.news import BasicNewsRecipe

View File

@ -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

View File

@ -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)

View File

@ -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