mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-30 03:50:31 +00:00
only python3 supported now
This commit is contained in:
parent
774799f316
commit
8cc06683df
@ -20,11 +20,7 @@ from __future__ import division, print_function, unicode_literals
|
|||||||
|
|
||||||
from cps import config, logger
|
from cps import config, logger
|
||||||
from cps.services.worker import CalibreTask
|
from cps.services.worker import CalibreTask
|
||||||
|
from urllib.request import urlopen
|
||||||
try:
|
|
||||||
from urllib.request import urlopen
|
|
||||||
except ImportError as e:
|
|
||||||
from urllib2 import urlopen
|
|
||||||
|
|
||||||
|
|
||||||
class TaskReconnectDatabase(CalibreTask):
|
class TaskReconnectDatabase(CalibreTask):
|
||||||
|
Loading…
Reference in New Issue
Block a user