only python3 supported now

This commit is contained in:
mmonkey 2021-01-04 12:28:05 -06:00
parent 774799f316
commit 8cc06683df

View File

@ -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):