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:
@@ -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+')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user