mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
5d09bc1f79
commit
8ce8d331b6
@ -286,7 +286,8 @@ def test_mem():
|
|||||||
for i in xrange(calls):
|
for i in xrange(calls):
|
||||||
subset(raw, (), (('a', 'z'),))
|
subset(raw, (), (('a', 'z'),))
|
||||||
del raw
|
del raw
|
||||||
for i in xrange(3): gc.collect()
|
for i in xrange(3):
|
||||||
|
gc.collect()
|
||||||
print ('Leaked memory per call:', (memory() - start_mem)/calls*1024, 'KB')
|
print ('Leaked memory per call:', (memory() - start_mem)/calls*1024, 'KB')
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
@ -344,7 +345,7 @@ def all():
|
|||||||
print (name, path, err)
|
print (name, path, err)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
print ('Average reduction to: %.1f%%'%( sum(averages)/len(averages)))
|
print ('Average reduction to: %.1f%%'%(sum(averages)/len(averages)))
|
||||||
print('Total:', total, 'Unsupported:', len(unsupported), 'Failed:',
|
print('Total:', total, 'Unsupported:', len(unsupported), 'Failed:',
|
||||||
len(failed), 'Warnings:', len(warnings))
|
len(failed), 'Warnings:', len(warnings))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user