mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 09:15:36 +01:00
...
This commit is contained in:
parent
9489286782
commit
e6d68eef01
1 changed files with 2 additions and 5 deletions
|
|
@ -301,7 +301,6 @@ def write_stats(self):
|
|||
locale = self.mo_file(f)[0]
|
||||
stats[locale] = min(1.0, float(trans)/total)
|
||||
|
||||
import cPickle
|
||||
cPickle.dump(stats, open(dest, 'wb'), -1)
|
||||
|
||||
def compile_user_manual_translations(self):
|
||||
|
|
@ -470,11 +469,10 @@ def run(self, opts):
|
|||
base_name = name.lower()
|
||||
nm[base_name] = threet
|
||||
|
||||
from cPickle import dump
|
||||
x = {'by_2':by_2, 'by_3b':by_3b, 'by_3t':by_3t, 'codes2':codes2,
|
||||
'codes3b':codes3b, 'codes3t':codes3t, '2to3':m2to3,
|
||||
'3to2':m3to2, '3bto3t':m3bto3t, 'name_map':nm}
|
||||
dump(x, open(dest, 'wb'), -1)
|
||||
cPickle.dump(x, open(dest, 'wb'), -1)
|
||||
|
||||
def clean(self):
|
||||
if os.path.exists(self.DEST):
|
||||
|
|
@ -512,7 +510,6 @@ def run(self, opts):
|
|||
name_map[two] = x.get('name')
|
||||
if three:
|
||||
three_map[three] = two
|
||||
from cPickle import dump
|
||||
x = {'names':name_map, 'codes':frozenset(codes), 'three_map':three_map}
|
||||
dump(x, open(dest, 'wb'), -1)
|
||||
cPickle.dump(x, open(dest, 'wb'), -1)
|
||||
# }}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue