mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DRY
This commit is contained in:
parent
4b80970b4c
commit
b08868bae2
@ -13,10 +13,11 @@ from threading import Thread
|
||||
|
||||
import calibre.ebooks.metadata.sources.search_engines as builtin_search_engines
|
||||
from calibre import as_unicode, prints
|
||||
from calibre.constants import DEBUG, numeric_version
|
||||
from calibre.constants import numeric_version
|
||||
from calibre.ebooks.metadata.sources.base import Source
|
||||
from calibre.utils.config import JSONConfig
|
||||
from calibre.utils.https import get_https_resource_securely
|
||||
from calibre.prints import debug_print
|
||||
from polyglot.builtins import iteritems, itervalues
|
||||
|
||||
cache = JSONConfig('metadata-sources-cache.json')
|
||||
@ -30,11 +31,6 @@ def search_engines_module():
|
||||
return current_search_engines
|
||||
|
||||
|
||||
def debug_print(*args, **k):
|
||||
if DEBUG:
|
||||
prints(*args, **k)
|
||||
|
||||
|
||||
def load_plugin(src):
|
||||
src = src.encode('utf-8')
|
||||
ns = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user