1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-08 05:53:33 +02:00

Removed prints and extract function from init module

This commit is contained in:
2020-07-13 21:38:06 +02:00
parent 025878dfe5
commit 4216fef20e
20 changed files with 97 additions and 336 deletions

View File

@@ -8,7 +8,7 @@ import re
import sys
import urllib.parse
from ebook_converter import prints, force_unicode
from ebook_converter import force_unicode
from ebook_converter.utils.config_base import tweaks
from ebook_converter.polyglot.urllib import unquote
@@ -16,8 +16,8 @@ from ebook_converter.polyglot.urllib import unquote
try:
_author_pat = re.compile(tweaks['authors_split_regex'])
except Exception:
prints('Author split regexp:', tweaks['authors_split_regex'],
'is invalid, using default')
print(f"Author split regexp: {tweaks['authors_split_regex']}, is invalid, "
f"using default")
_author_pat = re.compile(r'(?i),?\s+(and|with)\s+')