mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revert "Fixed typo(?) in set_metadata() for touched files."
This reverts commit 8f30c17486701bf2cc29a84c98af5336de75fc56.
This commit is contained in:
parent
144f66c13b
commit
c3cc6a2278
@ -36,7 +36,7 @@ def set_metadata(stream, mi):
|
|||||||
except WorkerError as e:
|
except WorkerError as e:
|
||||||
raise Exception('Failed to set PDF metadata: %s'%e.orig_tb)
|
raise Exception('Failed to set PDF metadata: %s'%e.orig_tb)
|
||||||
if touched:
|
if touched:
|
||||||
with open(os.path.join(tdir, u'input.pdf'), 'rb') as f:
|
with open(os.path.join(tdir, u'output.pdf'), 'rb') as f:
|
||||||
f.seek(0, 2)
|
f.seek(0, 2)
|
||||||
if f.tell() > 100:
|
if f.tell() > 100:
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user