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'
|
__license__ = 'GPL v3'
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
__license__ = 'GNU General Public License v3 - http://www.gnu.org/copyleft/gpl.html'
|
__license__ = 'GNU General Public License v3 - http://www.gnu.org/copyleft/gpl.html'
|
||||||
__copyright__ = 'tomashnyk@gmail.com'
|
__copyright__ = 'tomashnyk@gmail.com'
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
# This imports the version bundled with Calibre
|
# This imports the version bundled with Calibre
|
||||||
import lxml
|
import lxml
|
||||||
|
@ -116,7 +116,7 @@ class TextileMLizer(OEB2HTML):
|
|||||||
# blank paragraph
|
# blank paragraph
|
||||||
text = re.sub(r'\n(p.*\.)\n', r'\n\1 \n\n', text)
|
text = re.sub(r'\n(p.*\.)\n', r'\n\1 \n\n', text)
|
||||||
# blank paragraph
|
# blank paragraph
|
||||||
text = re.sub('\n\xa0', r'\np. ', text)
|
text = text.replace('\n\xa0', '\np. ')
|
||||||
# blank paragraph
|
# blank paragraph
|
||||||
text = re.sub('\np[<>=]{1,2}?\\. \xa0', r'\np. ', text)
|
text = re.sub('\np[<>=]{1,2}?\\. \xa0', r'\np. ', text)
|
||||||
text = re.sub(r'(^|\n)(p.*\. ?\n)(p.*\.)', r'\1\3', 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'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from qt.core import QModelIndex
|
from qt.core import QModelIndex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user