mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:43:08 +02:00
Get rid of a pointless use of pickle
This commit is contained in:
parent
7fcf90ba97
commit
54ef601e91
2 changed files with 5 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
|||
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import cPickle, shutil
|
||||
import shutil
|
||||
|
||||
from PyQt5.Qt import QAbstractListModel, Qt, QFont, QModelIndex, QDialog, QCoreApplication, QSize
|
||||
|
||||
|
|
@ -231,7 +231,7 @@ def break_cycles(self):
|
|||
def recommendations(self):
|
||||
recs = [(k, v, OptionRecommendation.HIGH) for k, v in
|
||||
self._recommendations.items()]
|
||||
return cPickle.dumps(recs, -1)
|
||||
return recs
|
||||
|
||||
def show_group_help(self, index):
|
||||
widget = self._groups_model.widgets[index.row()]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
Logic for setting up conversion jobs
|
||||
'''
|
||||
|
||||
import cPickle, os
|
||||
import os
|
||||
|
||||
from PyQt5.Qt import QDialog, QProgressDialog, QTimer
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{
|
|||
desc = _('Convert book %(num)d of %(total)d (%(title)s)') % \
|
||||
{'num':i + 1, 'total':total, 'title':dtitle}
|
||||
|
||||
recs = cPickle.loads(d.recommendations)
|
||||
recs = d.recommendations
|
||||
if d.opf_file is not None:
|
||||
recs.append(('read_metadata_from_opf', d.opf_file.name,
|
||||
OptionRecommendation.HIGH))
|
||||
|
|
@ -145,7 +145,7 @@ def convert_bulk_ebook(parent, queue, db, book_ids, out_format=None, args=[]):
|
|||
return None
|
||||
|
||||
output_format = d.output_format
|
||||
user_recs = cPickle.loads(d.recommendations)
|
||||
user_recs = d.recommendations
|
||||
|
||||
book_ids = convert_existing(parent, db, book_ids, output_format)
|
||||
use_saved_single_settings = d.opt_individual_saved_settings.isChecked()
|
||||
|
|
|
|||
Loading…
Reference in a new issue