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
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.request import urlopen
|
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