| Index: chrome/common/extensions/docs/server2/example_zipper.py
|
| diff --git a/chrome/common/extensions/docs/server2/example_zipper.py b/chrome/common/extensions/docs/server2/example_zipper.py
|
| index a21867cfd3ecfab9b3442798f2441aaaa9635fe9..26dbe1573f16313e6d0f5889e679cd15fb3515a5 100644
|
| --- a/chrome/common/extensions/docs/server2/example_zipper.py
|
| +++ b/chrome/common/extensions/docs/server2/example_zipper.py
|
| @@ -24,8 +24,9 @@ class ExampleZipper(object):
|
| zip_bytes = BytesIO()
|
| zip_file = ZipFile(zip_bytes, mode='w')
|
| try:
|
| - for filename, contents in self._file_system.Read(files).Get().iteritems():
|
| - zip_file.writestr(filename[len(prefix):].strip('/'), contents)
|
| + for name, file_contents in (
|
| + self._file_system.Read(files, binary=True).Get().iteritems()):
|
| + zip_file.writestr(name[len(prefix):].strip('/'), file_contents)
|
| finally:
|
| zip_file.close()
|
| return zip_bytes.getvalue()
|
|
|