aboutsummaryrefslogtreecommitdiff
path: root/mammoth/zips.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-09-12 16:06:21 +0100
committerMichael Williamson <mike@zwobble.org>2015-09-12 16:06:21 +0100
commit4c88820f3d4778e75a4be50f7a2d78d03dc86316 (patch)
treeaae9012c78c4f98f691c99adcded4693e67234d8 /mammoth/zips.py
parent470ce2b5f07ed0191842db93bd5b653099c00aff (diff)
Add reading and writing of embedded style maps
Diffstat (limited to 'mammoth/zips.py')
-rw-r--r--mammoth/zips.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mammoth/zips.py b/mammoth/zips.py
index c6fe358..24c6b1c 100644
--- a/mammoth/zips.py
+++ b/mammoth/zips.py
@@ -26,3 +26,9 @@ class _Zip(object):
return True
except KeyError:
return False
+
+ def write_str(self, name, value):
+ self._zip_file.writestr(name, value)
+
+ def read_str(self, name):
+ return self._zip_file.read(name).decode("utf8")