diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-09-12 17:36:00 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-09-12 17:36:00 +0100 |
| commit | b1ff76175f8b56a20155f831d601b0f891a7755b (patch) | |
| tree | 4acb1af1b2bd8e6b49086b720aed0748ad402f93 /mammoth/zips.py | |
| parent | aeb69f46af4f59bca08c38117c41ce1d5dc82e06 (diff) | |
Handle string encoding in style maps properly
Diffstat (limited to 'mammoth/zips.py')
| -rw-r--r-- | mammoth/zips.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/zips.py b/mammoth/zips.py index 4d77acb..432be5d 100644 --- a/mammoth/zips.py +++ b/mammoth/zips.py @@ -42,7 +42,7 @@ def update_zip(fileobj, files): names = set(source.namelist()) | set(files.keys()) for name in names: if name in files: - contents = files[name].encode("utf8") + contents = files[name] else: contents = source.read(name) destination.writestr(name, contents) |
