From 5fc4926fbe2cf9e6d1e84d3241befc152d6afb81 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Sat, 31 Jan 2009 23:54:17 +0000 Subject: use save_to_callback() instead of save() to save files to zip --- (limited to 'Document.py') diff --git a/Document.py b/Document.py index 5db435a..6e8e7cf 100644 --- a/Document.py +++ b/Document.py @@ -82,9 +82,6 @@ def save(filepath): zip.writestr('MANIFEST.xml', tostring(manifest, encoding='utf-8')) zip.close() - import shutil - shutil.copy(filepath, '/tmp/foo.zip') - def load(filepath): zip = Utils.Zip(filepath, 'r') manifest = fromstring(zip.read('MANIFEST.xml')) -- cgit v0.9.1